I am implementing a large C++ project and want to use the "parallel power" of mpi.
I just start to try to learn mpi and at first I thought it would be just like multi thread programming (include the library, code and run),
but found that to compile the program I need to use cmd mpicc
and to run the program I need cmd mpirun
(at least in the basic examples), so how should I change the cmake file to make it compile together with other parts(other using G++)(it might just be a CMAKE question) and how to run the whole program that I can use the MPI computing just like call a function with out use the mpirun
?