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

Annotation of /MITgcm/tools/build_options/sp4

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


Revision 1.10 - (hide annotations) (download)
Mon Jul 22 18:40:45 2013 UTC (10 years, 11 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64k, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, 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
Changes since 1.9: +3 -3 lines
- remove MPI_HEADER_FILES_INC setting (no longer used)
- for now, comment out MPI_HEADER_FILES list (let genmake2 find which
   MPI header is needed)

1 edhill 1.2 #!/bin/bash
2     #
3 jmc 1.10 # $Header: /u/gcmpack/MITgcm/tools/build_options/sp4,v 1.9 2011/09/13 14:38:19 jmc Exp $
4 jmc 1.8 # $Name: $
5 edhill 1.2
6 jmc 1.8 # tested on bluesky, ce107 Oct 2005
7 edhill 1.3 # using the following invocation:
8 jmc 1.9 # ../../../tools/genmake2 -of=../../../tools/build_options/sp4 -mpi -make=gmake
9 edhill 1.3
10 jmc 1.9 if test "x$MPI" = xtrue ; then
11     CC='mpcc_r'
12     FC='mpxlf95_r'
13     LINK='mpxlf95_r'
14     else
15     CC='cc_r'
16     FC='xlf95_r'
17     LINK='xlf95_r'
18     fi
19    
20     FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"
21 edhill 1.2 S64='$(TOOLSDIR)/set64bitConst.sh'
22 jmc 1.9 DEFINES='-DTARGET_AIX -DWORDLENGTH=4'
23     CPP='/lib/cpp -P'
24 edhill 1.2
25 jmc 1.9 #FFLAGS="$FFLAGS -qfixed=72"
26     FFLAGS="$FFLAGS -qfixed=132 -bmaxdata:0x80000000"
27    
28     if test "x$IEEE" = x ; then #- with optimisation:
29 ce107 1.7 FOPTIM='-O3 -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'
30 jmc 1.9 CFLAGS=$FOPTIM
31     else #- no optimisation + IEEE :
32 ce107 1.7 FOPTIM='-O3 -qstrict -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'
33 jmc 1.9 CFLAGS=$FOPTIM
34 ce107 1.7 fi
35 jmc 1.9
36 ce107 1.7 HPMTINC='-I/usr/local/hpmtoolkit/include'
37     HPMTLIB='-L/usr/local/hpmtoolkit/lib -lhpm_r -lpmapi'
38     GSLINC='-I/home/bluesky/evangeli/gsl-1.5/include'
39     GSLLIB='-L/home/bluesky/evangeli/gsl-1.5/lib -lgsl -lgslcblas'
40     PAPIINC='-I/usr/local/include'
41     PAPILIB='-L/usr/local/lib -lpapi'
42 jmc 1.9
43     #ph: e.g. bluesky.ucar.edu, marcellus.navo.hpc.mil
44     INCLUDES='-I/usr/local/include'
45     LIBS='-L/usr/local/apps/mass -lmass -L/usr/local/lib/r4i4'
46    
47     if test "x$MPI" = xtrue ; then
48     INCLUDES="-I/usr/lpp/ppe.poe/include/thread $INCLUDES"
49 jmc 1.10 #- used for parallel (MPI) DIVA
50 jmc 1.9 MPIINCLUDEDIR='/usr/lpp/ppe.poe/include/thread'
51 jmc 1.10 #MPI_HEADER_FILES='mpif.h'
52 jmc 1.9 else
53     # the original "sp4-32bit" as "/usr/local/lib32" instead of "/usr/local/lib"
54     LIBS='-L/usr/local/apps/mass -lmass -L/usr/local/lib32/r4i4'
55     fi

  ViewVC Help
Powered by ViewVC 1.1.22