[MITgcm-support] problems with compile with MPI

Miroslaw Andrejczuk Andrejczuk at atm.ox.ac.uk
Sat Dec 21 03:42:59 EST 2013


Hi Lizhi,

You need to find a path, where your pgf90 compiler is installed. Later modify the PATH variable to include this path.
For bash you need to execute:  export PATH=$PATH:/path_to_pgf90_compiler/bin, for tcsh:
setenv PATH=$PATH:/path_to_pgf90_compiler/bin.

You can find what shell you use using following command:  env | fgrep SHELL

Mirek

-------------------------------------------------------------------------
Miroslaw Andrejczuk
Atmospheric, Oceanic & Planetary Physics,
Clarendon Laboratory,
Parks Road,
Oxford OX1 3PU
United Kingdom

phone:+44 (0) 186 528 2437
--------------------------------------------------------------------------
________________________________
From: 李志远 [oceanlizy at 163.com]
Sent: Friday, December 20, 2013 5:23 AM
To: MITgcm
Subject: [MITgcm-support] problems with compile with MPI


From: lizhiyuan<oceanlizy at 163.com>
To: MITgcm <mitgcm-support at mitgcm.org>
Subject: [MITgcm-support] problems with compile with MPI


Hi ,Mirek ,

    I used the way you told me before  to compile with mpi , I used the command " ../../../tools/genmake2 -mods=../code -of=../../../tools/build_options/linux_amd_pgf90+mpi_xd1 " ,when I type "make", it occur new errors :

                                 " The Open MPI wrapper compiler was unable to find the specified compiler pgf90 in your PATH.

                                   Note that this compiler was either specified at configure time or in
                                  one of several possible environment variables.



and my mpi is installed at "/dcfs2/program/mpi/openmpi/1.4.3/pgcc_pgf90 "    ,I modified the linux_amd_pgf90+mpi_xd1 file in tools/build_options  , as follows:
                      "
 FC='/dcfs2/program/mpi/openmpi/1.4.3/pgcc_pgf90/bin/mpif90'
CC='/dcfs2/program/mpi/openmpi/1.4.3/pgcc_pgf90/bin/mpicc'
LINK='/dcfs2/program/mpi/openmpi/1.4.3/pgcc_pgf90/bin/mpif90'

MPI='true'

DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4'
CPP='/usr/bin/cpp -P -traditional'
EXTENDED_SRC_FLAG='-Mextend'
INCLUDEDIRS='/dcfs2/program/mpi/openmpi/1.4.3/pgcc_pgf90/include'
INCLUDES='-I/dcfs2/program/mpi/openmpi/1.4.3/pgcc_pgf90/include'
LIBS='-L/dcfs2/program/mpi/openmpi/1.4.3/pgcc_pgf90/lib'

  I don't know why it happened such error , a few days ago ,I did it in the same way ,and  the compile is good ,and generated "mitgcmuv" file  ,but when I use it in other tests ,it always occur errors , it is so strange .

can you tell me what I should do , Mirek ?   sorry to trouble you again , but I really need your help .
 best regards !
lizhiyuan




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20131221/ef569534/attachment.htm>


More information about the MITgcm-support mailing list