[MITgcm-support] MITgcm-support Digest, Vol 126, Issue 39

李志远 oceanlizy at 163.com
Sun Dec 22 00:43:21 EST 2013


thank you, Miroslaw Andrejczuk;
     I am really greatful for your quick reply , I read my computer system userguide ,and I find the way to include my mpi path ,  I  did it as follows ,and now MPI compile normally !

$ vi .bashrc
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
export PATH=/dcfs2/program/mpi/mvapich2/1.8/pgcc.pgf90/bin/:$PATH
export LD_LIBRARY_PATH=/dcfs2/program/mpi/mvapich2/1.8/pgcc.pgf90/lib/:$LD_LIBRARY_PATH




best regards!
 lizhiyuan 





At 2013-12-22 01:00:02,mitgcm-support-request at mitgcm.org wrote:
>Send MITgcm-support mailing list submissions to
>	mitgcm-support at mitgcm.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
>	http://mitgcm.org/mailman/listinfo/mitgcm-support
>or, via email, send a message with subject or body 'help' to
>	mitgcm-support-request at mitgcm.org
>
>You can reach the person managing the list at
>	mitgcm-support-owner at mitgcm.org
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of MITgcm-support digest..."
>
>
>Today's Topics:
>
>   1. Re: problems with compile with MPI (Miroslaw Andrejczuk)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Sat, 21 Dec 2013 08:42:59 +0000
>From: Miroslaw Andrejczuk <Andrejczuk at atm.ox.ac.uk>
>To: "mitgcm-support at mitgcm.org" <mitgcm-support at mitgcm.org>
>Subject: Re: [MITgcm-support] problems with compile with MPI
>Message-ID:
>	<7C25BD49CACF3B48AA364C2BEB2D2DB850076AF0 at EXCHNG10.physics.ox.ac.uk>
>Content-Type: text/plain; charset="gb2312"
>
>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.html>
>
>------------------------------
>
>_______________________________________________
>MITgcm-support mailing list
>MITgcm-support at mitgcm.org
>http://mitgcm.org/mailman/listinfo/mitgcm-support
>
>
>End of MITgcm-support Digest, Vol 126, Issue 39
>***********************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20131222/d28b5918/attachment.htm>


More information about the MITgcm-support mailing list