Home > OS >  How to make the cmake compiler compiler to recognize the mpi?
How to make the cmake compiler compiler to recognize the mpi?

Time:11-19

Download a software before, after the cmake compile make an error, email reply after asked the developer is probably cmake without discernment to the mpi compiler, and suggested that I use ccmake then press t check CMAKE_CXX_COMPILER, CMAKE_C_COMPILER and CMAKE_Fortran_COMPILER value, developers must mpicxx respectively, mpicc and mpifort,
But I have downloaded the mpich, is to use apt install mpich installation, running on my own computer according to t the three items respectively represent the/usr/bin/GCC,/usr/bin/GXX and/usr/bin/gfortran, excuse me how do you make cmake recognition to the mpi compiler?
  • Related