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

Contents of /MITgcm/tools/build_options/linux_ppc_xlf

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


Revision 1.4 - (show annotations) (download)
Mon Sep 12 23:01:10 2011 UTC (12 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63c, checkpoint64, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, HEAD
Changes since 1.3: +38 -14 lines
merge linux_ppc_xlf+mth and linux_ppc_xlf_bigred(+mth)  into this standard
 optfile ; add comment about NETCDF_ROOT setting for bigred built.

1 #!/bin/bash
2 #
3 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ppc64_xlf,v 1.3 2010/03/21 22:22:53 jmc Exp $
4 # $Name: $
5
6 # tested on frost, ce107 Aug 4 2005
7 # using the following invocation:
8 # ../../../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'
27 DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR'
28 CPP='/lib/cpp -traditional -P'
29 OMPFLAG='-qsmp=omp'
30
31 #FFLAGS="$FFLAGS -qfixed=72"
32 FFLAGS="$FFLAGS -qfixed=132"
33
34 if test "x$IEEE" = x ; then
35 # No need for IEEE-754
36 FOPTIM='-O5 -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1'
37 FOPTIM="$FOPTIM -qipa=noobject:partition=large:threads"
38 CFLAGS="-qinlglue $FOPTIM"
39 else
40 FOPTIM='-O3 -qstrict -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1'
41 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

  ViewVC Help
Powered by ViewVC 1.1.22