[MITgcm-support] problems with compile with MPI

李志远 oceanlizy at 163.com
Tue Dec 17 08:48:36 EST 2013


From: lizhiyuan <oceanlizy at 163.com>
To: mitgcm-support at mitgcm.orgSubject:   problems with compile with MPIDear,all;
      I want to use mpi run my  model , but I don't know how to compile it  wiht mpi  . my computer system is linux_amd64  with gfortran and openmpi. The openmpi is installed at '/dcfs2/program/mpi/openmpi/1.4.3/pgcc_pgf90/ ' and have five subdirectories : bin , etc ,include ,lib ,share . 
 I find my mpif90 is located at '/dcfs2/program/mpi/openmpi/1.4.3/pgcc_pgf90/bin/mpif90 ' 
should I just modify  the files 'linux_amd64_pgf90+mpi_xd1'in the /tools/build_options as follows:


FC='mpif90'
CC='mpicc'
LINK='mpif90'


MPI='true'
INCLUDEDIRS='/dcfs2/program/mpi/openmpi/1.4.3/pgcc_pgf90/include'
DEFINES='-DWORDLENGTH=4'
CPP='/usr/bin/cpp -P -traditional'
EXTENDED_SRC_FLAG='-Mextend'


INCLUDES='-I/dcfs2/program/mpi/openmpi/1.4.3/pgcc_pgf90/include'
LIBS='-L/dcfs2/program/mpi/openmpi/1.4.3/pgcc_pgf90/lib'


and then,cd build,type  " ../../../tools/genmake2 -mods=../code -of=../../../tools/build_options/linux_amd64_pgf90+mpi_xd1=/dcfs2/program/mpi/openmpi/1.4.3/pgcc_pgf90"?
I am some confused , someone met the same questions, can any one help me ? 
I am looking forward to your quick reply .
thanks  so much !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20131217/16be92ab/attachment.htm>


More information about the MITgcm-support mailing list