May I ask how to include mpi and openmp compiler in the cmake file?
I tried to include the following lines:
#this find out compilers for mpi
find_package(MPI REQUIRED)
#this find out compilers for openmp
find_package(OpenMP)
Then I include the both libraries:
target_link_libraries(mympiopenmpproject PUBLIC MPI::MPI_CXX PUBLIC OpenMP::OpenMP_CXX)
Thanks a lot.
New contributor
CityOfHope is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.