[MITgcm-support] problems with compile with MPI

MIT jahn at MIT.EDU
Tue Dec 17 10:01:24 EST 2013


Dear Lizhi,

the modification you made look reasonable.  Why don't you give it a try
and report back how it went?  The last part of your genmake2 command
looks funny, though.  It should just be

../../../tools/genmake2 -mods=../code
-of=../../../tools/build_options/linux_amd64_pgf90+mpi_xd1

And make sure your SIZE.h (in code) has nPx or nPy > 1.  If you don't
know how to modify SIZE.h, have a look at one of the verification
experiments, like verification/tutorial_barotropic_gyre.  SIZE.h_mpi is
the version for mpi with 2 processors.

Cheers,
Oliver


On 2013-12-17 08:48, 李志远 wrote:
> From: lizhiyuan <oceanlizy at 163.com <mailto:oceanlizy at 163.com>>
> To: mitgcm-support at mitgcm.org <mailto:mitgcm-support at mitgcm.org>
> 
> Subject:   <mailto:mitgcm-support at mitgcm.org> problems with compile with MPI
> 
> Dear,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 !
> 
> 
> 
> 
> _______________________________________________
> MITgcm-support mailing list
> MITgcm-support at mitgcm.org
> http://mitgcm.org/mailman/listinfo/mitgcm-support
> 




More information about the MITgcm-support mailing list