I’m trying to compile the model WRF-CHEM model using the PGI compiler and the dmpar option (i.e.: distributed memory option using mpich). I’ve already installed MPICH following the PGI tutorial, and set the environmental variable MPI_ROOT pointing to the MPICH installation directory.
The problem is that the software does not compile correctly complaining that:
pgf90 -w -Mfree -byteswapio -c -I/home/modelstation/pgnetcdf/include -I../ioapi_share diffwrf.f diffwrf io_netcdf is being built now. /usr/bin/ld: cannot find -lmpi make: [diffwrf] Error 2 (ignored)
What is -lmpi? is it a compiler flag? A header to include? In the MPICH folder I cannot find any file with that string in the name.
Sorry for the probably stupid question, I’m quite new at parallel computing.
Thanks in advance for all your help!