[MITgcm-support] optfile for NETCDF+MPI
Martha W Buckley
marthab at MIT.EDU
Tue Oct 9 17:09:11 EDT 2012
Hi Martin,
Thanks for the quick reply. I attached my optfile. Just a bit of background, a
previous version this optfile was used successfully on the computer here (at AER
in Lexington, MA), but with ppc32 not ppc64. Since then, the MITgcm has
obviously been updated and the system was changed over from 32 bit to 64 bit.
I have also pasted my .cshrc file below.
thanks,
Martha
%%%%%%%%%%%%%%%
setenv P4_SOCKBUFSIZE 262144
setenv P4_GLOBMEMSIZE 60000000
limit stacksize unlimited
# this gets rid of: "-q32 -O3 -qarch=ppc64 -qtune=auto"
# use mpif90/mpicc with args: "-showme:compile" or "-showme:link"
setenv OMPI_FCFLAGS ""
setenv OMPI_CFLAGS ""
#setenv OMPI_LDFLAGS "-L/usr/local/openmpi/1.2.7/ibmcmp32/lib"
setenv OMPI_LDFLAGS "-L/usr/local/openmpi/1.2.7/ibmcmp64/lib"
# jmh needed the following for WPS 3.1 linking:
#setenv OBJECT_MODE 64
if ($?NETCDF) then
# override if existing NETCDF environment variable no good
if (-d $NETCDF/lib == 0 | -d $NETCDF/include == 0) then
setenv NETCDF /usr/local/netcdf/3.6.3/ibmxl64
endif
else
setenv NETCDF /usr/local/netcdf/3.6.3/ibmxl64
endif
#setenv JASPERLIB
/project/dap/humboldt/supplibs-2.1.0a/powerpc64-unknown-linux-gnu/lib
#setenv JASPERINC
/project/dap/humboldt/supplibs-2.1.0a/powerpc64-unknown-linux-gnu/include
# reset path and R_HOME for R on humboldt (has already been set by .login.linux)
#if ($?R_HOME) then
# set old_r_sed=`echo $R_HOME | sed -e 's/\//\\\//g'`
# setenv R_HOME /project/dap/humboldt/R-2.5.0 #installed 2007/05/07
# setenv R_HOME /project/dap/humboldt/R-2.4.1 #installed 2007/01/29
# setenv R_HOME /project/dap/humboldt/R-2.6.0 #installed 2007/10/10
# setenv R_HOME /project/dap/humboldt/R-2.7.0 #installed 2008/06/18
# set new_r_sed=`echo $R_HOME | sed -e 's/\//\\\//g'`
# setenv PATH `echo $PATH | sed -e "s/$old_r_sed/$new_r_sed/g"`
#else
# setenv R_HOME /project/dap/humboldt/R-2.5.0 #installed 2007/05/07
# setenv R_HOME /project/dap/humboldt/R-2.4.1 #installed 2007/01/29
# setenv R_HOME /project/dap/humboldt/R-2.6.0 #installed 2007/10/10
# setenv R_HOME /project/dap/humboldt/R-2.7.0 #installed 2008/06/18
# setenv PATH "${PATH}:${R_HOME}/bin"
#endif
#setenv MPIRUN `which mpiexec` # no longer used, see qsub_hum instead
setenv MPI_INC_DIR '/usr/local/mpich/1.2.7p1/ip/ppc64/smp/ibmcmp64/ssh/include'
#setenv GADDIR /project/dap/humboldt/grads-2.0.a6/data
#setenv GASCRP "/project/dap/humboldt/grads-2.0.a6/lib/scripts
/project/dap/NWP/AERNEWS/grads"
#setenv GRADSPATH /project/dap/humboldt/grads-2.0.a6/bin
foreach new_path ( "$NETCDF/bin" )
(printenv PATH | grep "$new_path") >& /dev/null
set not_found=$status
if ($not_found) then
# new_path not already in PATH, prepend
setenv PATH ${new_path}:${PATH}
# echo "Debug: after prepend PATH=$PATH"
endif
end
-------------- next part --------------
A non-text attachment was scrubbed...
Name: linux_ppc64_xlf_humboldt+mpi
Type: application/x-sh
Size: 1531 bytes
Desc: not available
URL: <http://mitgcm.org/pipermail/mitgcm-support/attachments/20121009/54706830/attachment.sh>
More information about the MITgcm-support
mailing list