Back to home page

MITgcm

 
 

    


Warning, /tools/build_options/linux_ppc_xlf is written in an unsupported language. File is not indexed.

view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
ebd02148a5 Cons*0001 #!/bin/bash
                0002 #
                0003 #  tested on frost, ce107 Aug 4 2005
                0004 #  using the following invocation:
b23db3c51a Jean*0005 #  ../../../tools/genmake2 -of=../../../tools/build_options/linux_ppc_xlf
                0006 #  or with OpenMP:
                0007 #  ../../../tools/genmake2 -of=../../../tools/build_options/linux_ppc_xlf -omp
ebd02148a5 Cons*0008 
b23db3c51a Jean*0009 #  Tested on Big Red, ce107 Aug 30 2007, need to set NETCDF_ROOT to:
                0010 #     > export NETCDF_ROOT='/N/soft/linux-sles9-ppc64/netcdf-3.6.1-ibm-32'
                0011 
                0012 if test "x$OMP" = xtrue ; then
                0013   CC='xlc_r -q32 -qsmp=omp'
                0014   FC='xlf_r -q32'
                0015   LINK='xlf_r -q32'
                0016 else
                0017   CC='xlc -q32'
                0018   FC='xlf -q32'
                0019   LINK='xlf -q32'
                0020 fi
                0021 
                0022 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"
ebd02148a5 Cons*0023 S64='$(TOOLSDIR)/set64bitConst.sh'
                0024 DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR'
                0025 CPP='/lib/cpp -traditional -P'
b23db3c51a Jean*0026 OMPFLAG='-qsmp=omp'
                0027 
                0028 #FFLAGS="$FFLAGS -qfixed=72"
                0029 FFLAGS="$FFLAGS -qfixed=132"
                0030 
ebd02148a5 Cons*0031 if test "x$IEEE" = x ; then
                0032     #  No need for IEEE-754
b23db3c51a Jean*0033     FOPTIM='-O5 -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1'
                0034     FOPTIM="$FOPTIM -qipa=noobject:partition=large:threads"
                0035     CFLAGS="-qinlglue $FOPTIM"
ebd02148a5 Cons*0036 else
b23db3c51a Jean*0037     FOPTIM='-O3 -qstrict -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1'
                0038     CFLAGS=$FOPTIM
                0039 fi
                0040 
                0041 INCLUDES=''
                0042 LIBS=''
                0043 
                0044 if [ "x$NETCDF_ROOT" != x ] ; then
                0045     INCLUDEDIR="${NETCDF_ROOT}/include"
                0046     INCLUDES="-I${NETCDF_ROOT}/include"
                0047     LIBDIR="${NETCDF_ROOT}/lib"
                0048     LIBS="-L${NETCDF_ROOT}/lib"
ebd02148a5 Cons*0049 fi