1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/sp4+mpi,v 1.3 2005/12/22 01:38:05 ce107 Exp $ |
4 |
# |
5 |
|
6 |
# tested on bluevista, ce107 Feb 2006 |
7 |
# using the following invocation: |
8 |
# ../../../tools/genmake2 -mods=../code -of=../../../tools/build_options/sp5+mpi -make=gmake |
9 |
|
10 |
S64='$(TOOLSDIR)/set64bitConst.sh' |
11 |
MAKEDEPEND=makedepend |
12 |
|
13 |
# NML_TERMINATOR should enable using "&" as terminator, but doesnt work |
14 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DTARGET_AIX -DWORDLENGTH=4 -DNML_TERMINATOR' |
15 |
|
16 |
INCLUDES='-I/usr/lpp/ppe.poe/include/thread64 -I/usr/local/include' |
17 |
CPP='/lib/cpp -P' |
18 |
# The -q64 is redundant on bluevista, default mode is 64bit |
19 |
CC='mpcc_r -q64' |
20 |
FC='mpxlf95_r -q64' |
21 |
LINK='mpxlf95_r -q64' |
22 |
LIBS='-lmass -L/usr/local/lib64/r4i4 -L/usr/local/lib64 -L/usr/local/lib' |
23 |
FFLAGS='-qfixed=132' |
24 |
if test "x$IEEE" = x ; then |
25 |
# No need for IEEE-754 |
26 |
FOPTIM='-O3 -Q -qarch=pwr5 -qtune=pwr5 -qcache=auto -qmaxmem=-1' |
27 |
CFLAGS='-O3 -Q -qarch=pwr5 -qtune=pwr5 -qcache=auto -qmaxmem=-1' |
28 |
else |
29 |
# Try to follow IEEE-754 |
30 |
FOPTIM='-O3 -qstrict -Q -qarch=pwr5 -qtune=pwr5 -qcache=auto -qmaxmem=-1' |
31 |
CFLAGS='-O3 -qstrict -Q -qarch=pwr5 -qtune=pwr5 -qcache=auto -qmaxmem=-1' |
32 |
fi |
33 |
# |
34 |
# useful for netcdf |
35 |
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X" |
36 |
# |
37 |
# useful for parallel DIVA |
38 |
MPI_HEADER_FILES='mpif.h' |
39 |
MPI_HEADER_FILES_INC='./mpi_headers/mpif.h' |
40 |
MPIINCLUDEDIR='/usr/lpp/ppe.poe/include/thread64' |
41 |
# |
42 |
# usful for timing, but not all libs availale on bv |
43 |
#HPMTINC='-I/usr/local/include' |
44 |
#HPMTLIB='-L/usr/local/lib -lhpm -lpmapi' |
45 |
#GSLINC='-I/homebv/evangeli/gsl-1.5/include' |
46 |
#GSLLIB='-L/homebv/evangeli/gsl-1.5/lib64 -lgsl -lgslcblas' |
47 |
#PAPIINC='-I/usr/local/include' |
48 |
#PAPILIB='-L/usr/local/lib -lpapi' |