/[MITgcm]/MITgcm/tools/build_options/sp4-64bit
ViewVC logotype

Annotation of /MITgcm/tools/build_options/sp4-64bit

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


Revision 1.4 - (hide annotations) (download)
Tue Sep 13 14:45:53 2011 UTC (12 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64i, checkpoint64h, checkpoint64j, 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
Changes since 1.3: +34 -16 lines
merge sp4+mpi into this optfile

1 ce107 1.1 #!/bin/bash
2     #
3 jmc 1.4 # $Header: /u/gcmpack/MITgcm/tools/build_options/sp4,v 1.8 2010/03/21 22:22:53 jmc Exp $
4 jmc 1.3 # $Name: $
5 ce107 1.1
6 jmc 1.4 # tested on bluesky, ce107 Dec 2005
7     # using the following invocation:
8     # ../../../tools/genmake2 -of=../../../tools/build_options/sp4-64bit -mpi -make=gmake
9 ce107 1.1
10 jmc 1.4 if test "x$MPI" = xtrue ; then
11     CC='mpcc_r -q64'
12     FC='mpxlf95_r -q64'
13     LINK='mpxlf95_r -q64'
14     else
15     CC='cc_r -q64'
16     FC='xlf95_r -q64'
17     LINK='mpxlf95_r -q64'
18     fi
19    
20     FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"
21 ce107 1.1 S64='$(TOOLSDIR)/set64bitConst.sh'
22     DEFINES='-DTARGET_AIX -DWORDLENGTH=4'
23 jmc 1.4 CPP='/lib/cpp -P'
24    
25     #FFLAGS="$FFLAGS -qfixed=72"
26     FFLAGS="$FFLAGS -qfixed=132"
27 ce107 1.1
28 jmc 1.4 if test "x$IEEE" = x ; then #- with optimisation:
29 ce107 1.2 FOPTIM='-O3 -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'
30 jmc 1.4 CFLAGS=$FOPTIM
31     else #- no optimisation + IEEE :
32 ce107 1.2 FOPTIM='-O3 -qstrict -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'
33 jmc 1.4 CFLAGS=$FOPTIM
34     fi
35    
36     #INCLUDES='-I/usr/local/include'
37     LIBS='-L/usr/local/apps/mass -lmass -L/usr/local/lib64/r4i4'
38    
39     if test "x$MPI" = xtrue ; then
40     INCLUDES='-I/usr/local/include'
41     INCLUDES="-I/usr/lpp/ppe.poe/include/thread64 $INCLUDES"
42     # MPIINCLUDEDIR='/usr/lpp/ppe.poe/include/thread'
43     # MPI_HEADER_FILES='mpif.h'
44     # MPI_HEADER_FILES_INC='./mpi_headers/mpif.h'
45 ce107 1.2 fi

  ViewVC Help
Powered by ViewVC 1.1.22