Skip to content

Latest commit

 

History

History
13 lines (6 loc) · 142 Bytes

ubuntu下编译openmp和mpi的命令.md

File metadata and controls

13 lines (6 loc) · 142 Bytes

OpenMP

g++ -c test.cpp -o test.o -fopenmp

g++ test.o -o test -fopenmp -lpthread

MPI

mpicxx -o test test.cpp

mpirun -np 8 ./test