1 |
edhill |
1.2 |
#!/bin/bash |
2 |
|
|
# |
3 |
jmc |
1.8 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/sp4,v 1.7 2005/12/22 01:38:05 ce107 Exp $ |
4 |
|
|
# $Name: $ |
5 |
edhill |
1.2 |
|
6 |
jmc |
1.8 |
# tested on bluesky, ce107 Oct 2005 |
7 |
edhill |
1.3 |
# using the following invocation: |
8 |
|
|
# ../../../tools/genmake2 -mods=../code -of=../../../tools/build_options/sp4 -make=gmake |
9 |
|
|
|
10 |
edhill |
1.2 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
11 |
|
|
MAKEDEPEND=makedepend |
12 |
ce107 |
1.6 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DTARGET_AIX -DWORDLENGTH=4' |
13 |
edhill |
1.2 |
|
14 |
edhill |
1.1 |
#ph: e.g. bluesky.ucar.edu, marcellus.navo.hpc.mil |
15 |
ce107 |
1.7 |
INCLUDES='-I/usr/lpp/ppe.poe/include/thread -I/usr/local/include' |
16 |
edhill |
1.3 |
CPP='/lib/cpp -P' |
17 |
ce107 |
1.7 |
CC='mpcc_r' |
18 |
|
|
FC='mpxlf95_r' |
19 |
|
|
LINK='mpxlf95_r' |
20 |
|
|
LIBS='-L/usr/local/apps/mass -lmass -L/usr/local/lib/r4i4' |
21 |
ce107 |
1.6 |
FFLAGS='-qfixed=132 -bmaxdata:0x80000000' |
22 |
ce107 |
1.7 |
if test "x$IEEE" = x ; then |
23 |
|
|
# No need for IEEE-754 |
24 |
|
|
FOPTIM='-O3 -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' |
25 |
|
|
CFLAGS='-O3 -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' |
26 |
|
|
else |
27 |
|
|
# Try to follow IEEE-754 |
28 |
|
|
FOPTIM='-O3 -qstrict -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' |
29 |
|
|
CFLAGS='-O3 -qstrict -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' |
30 |
|
|
fi |
31 |
ce107 |
1.6 |
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X" |
32 |
ce107 |
1.7 |
MPI_HEADER_FILES='mpif.h' |
33 |
|
|
MPI_HEADER_FILES_INC='./mpi_headers/mpif.h' |
34 |
|
|
MPIINCLUDEDIR='/usr/lpp/ppe.poe/include/thread' |
35 |
|
|
HPMTINC='-I/usr/local/hpmtoolkit/include' |
36 |
|
|
HPMTLIB='-L/usr/local/hpmtoolkit/lib -lhpm_r -lpmapi' |
37 |
|
|
GSLINC='-I/home/bluesky/evangeli/gsl-1.5/include' |
38 |
|
|
GSLLIB='-L/home/bluesky/evangeli/gsl-1.5/lib -lgsl -lgslcblas' |
39 |
|
|
PAPIINC='-I/usr/local/include' |
40 |
|
|
PAPILIB='-L/usr/local/lib -lpapi' |