Recently I am trying to put MPI package into my code but I meet some problems which might be related to environment setting and do not know how to solve it. The MPI package I use is MS HPC Pack 2008 R2. The 3 errors are related to LNK2019.
My code is like:
call mpi_comm_rank(mpi_comm_world, myid,ierr)
call mpi_comm_size(mpi_comm_world, numprocs,ierr)
Linker -> General The folder that contains msmpi.lib and msmpifec.lib
Linker -> Input msmpi.lib msmpifec.lib
Debuggin -> Action -> Command mpiexec.exe
Fortran -> Libraries Multithread DLL (/libs:dll /threads)
I know I should put something like -n 4 $(TargetPath) into Debugging -> Action -> Command Argument
But what is $(TargetPath)?
Besides, is there anything else I miss such that compiler complained?