Warning, /tools/build_options/linux_ppc64_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
6f6cf02b9a Cons*0001 #!/bin/bash
0002 #
0003 # tested on frost, ce107 Aug 4 2005
0004 # using the following invocation:
1c1b867859 Jean*0005 # ../../../tools/genmake2 -of=../../../tools/build_options/linux_ppc64_xlf
0006 # or with OpenMP:
0007 # ../../../tools/genmake2 -of=../../../tools/build_options/linux_ppc64_xlf -omp
6f6cf02b9a Cons*0008
1c1b867859 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-64'
0011 # and at NCAR (on frost ?), need to set NETCDF_ROOT to:
0012 # > export NETCDF_ROOT='/contrib/fe_tools/xlc64/netcdf-3.6.0-p1'
0013
0014 if test "x$OMP" = xtrue ; then
0015 CC='xlc_r -q64 -qsmp=omp'
0016 FC='xlf_r -q64'
0017 LINK='xlf_r -q64'
0018 else
0019 CC='xlc -q64'
0020 FC='xlf -q64'
0021 LINK='xlf -q64'
0022 fi
0023
0024 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"
6f6cf02b9a Cons*0025 S64='$(TOOLSDIR)/set64bitConst.sh'
ebd02148a5 Cons*0026 DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR'
6f6cf02b9a Cons*0027 CPP='/lib/cpp -traditional -P'
1c1b867859 Jean*0028 OMPFLAG='-qsmp=omp'
0029
0030 #FFLAGS="$FFLAGS -qfixed=72"
0031 FFLAGS="$FFLAGS -qfixed=132"
0032
6f6cf02b9a Cons*0033 if test "x$IEEE" = x ; then
0034 # No need for IEEE-754
1c1b867859 Jean*0035 FOPTIM='-O5 -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1'
0036 FOPTIM="$FOPTIM -qipa=noobject:partition=large:threads"
0037 CFLAGS="-qinlglue $FOPTIM"
6f6cf02b9a Cons*0038 else
1c1b867859 Jean*0039 FOPTIM='-O3 -qstrict -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1'
0040 CFLAGS=$FOPTIM
0041 fi
0042
0043 INCLUDES=''
0044 LIBS=''
0045
0046 if [ "x$NETCDF_ROOT" != x ] ; then
0047 INCLUDEDIR="${NETCDF_ROOT}/include"
0048 INCLUDES="-I${NETCDF_ROOT}/include"
0049 LIBDIR="${NETCDF_ROOT}/lib"
0050 LIBS="-L${NETCDF_ROOT}/lib"
6f6cf02b9a Cons*0051 fi