/[MITgcm]/MITgcm/tools/build_options/linux_ppc_xlf
ViewVC logotype

Diff of /MITgcm/tools/build_options/linux_ppc_xlf

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3 by jmc, Sun Mar 21 22:22:53 2010 UTC revision 1.4 by jmc, Mon Sep 12 23:01:10 2011 UTC
# Line 5  Line 5 
5    
6  #  tested on frost, ce107 Aug 4 2005  #  tested on frost, ce107 Aug 4 2005
7  #  using the following invocation:  #  using the following invocation:
8  #    ../../../tools/genmake2 -mods=../code -of=../../../tools/build_options/linux_ppc_xlf  #  ../../../tools/genmake2 -of=../../../tools/build_options/linux_ppc_xlf
9    #  or with OpenMP:
10    #  ../../../tools/genmake2 -of=../../../tools/build_options/linux_ppc_xlf -omp
11    
12    #  Tested on Big Red, ce107 Aug 30 2007, need to set NETCDF_ROOT to:
13    #     > export NETCDF_ROOT='/N/soft/linux-sles9-ppc64/netcdf-3.6.1-ibm-32'
14    
15    if test "x$OMP" = xtrue ; then
16      CC='xlc_r -q32 -qsmp=omp'
17      FC='xlf_r -q32'
18      LINK='xlf_r -q32'
19    else
20      CC='xlc -q32'
21      FC='xlf -q32'
22      LINK='xlf -q32'
23    fi
24    
25    FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"
26  S64='$(TOOLSDIR)/set64bitConst.sh'  S64='$(TOOLSDIR)/set64bitConst.sh'
 MAKEDEPEND=makedepend  
27  DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR'  DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR'
 INCLUDES=''  
28  CPP='/lib/cpp -traditional -P'  CPP='/lib/cpp -traditional -P'
29  FC='xlf -q32'  OMPFLAG='-qsmp=omp'
30  CC='xlc -q32'  
31  LINK='xlf -q32'  #FFLAGS="$FFLAGS -qfixed=72"
32  LIBS=''  FFLAGS="$FFLAGS -qfixed=132"
33  FFLAGS='-qfixed=132'  
34  if test "x$IEEE" = x ; then  if test "x$IEEE" = x ; then
35      #  No need for IEEE-754      #  No need for IEEE-754
36  FOPTIM='-O5 -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1 -qipa=noobject:partition=large:threads'      FOPTIM='-O5 -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1'
37  CFLAGS='-O5 -qinlglue -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1 -qipa=noobject:partition=large:threads'      FOPTIM="$FOPTIM -qipa=noobject:partition=large:threads"
38        CFLAGS="-qinlglue $FOPTIM"
39  else  else
40  FOPTIM='-O3 -qstrict -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1'      FOPTIM='-O3 -qstrict -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1'
41  CFLAGS='-O3 -qstrict -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1'      CFLAGS=$FOPTIM
42    fi
43    
44    INCLUDES=''
45    LIBS=''
46    
47    if [ "x$NETCDF_ROOT" != x ] ; then
48        INCLUDEDIR="${NETCDF_ROOT}/include"
49        INCLUDES="-I${NETCDF_ROOT}/include"
50        LIBDIR="${NETCDF_ROOT}/lib"
51        LIBS="-L${NETCDF_ROOT}/lib"
52  fi  fi
 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"  

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.22