1 |
ce107 |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
|
|
# $Header: /u/gcmpack/MITgcm/tools/build_options/sp4+mpi,v 1.4 2010/03/21 22:22:53 jmc Exp $ |
4 |
|
|
# $Name: $ |
5 |
|
|
|
6 |
|
|
S64='$(TOOLSDIR)/set64bitConst.sh' |
7 |
|
|
MAKEDEPEND=makedepend |
8 |
|
|
|
9 |
|
|
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DTARGET_AIX -DWORDLENGTH=4 -DNML_TERMINATOR' |
10 |
|
|
|
11 |
|
|
INCLUDES='-I/usr/lpp/ppe.poe/include/thread64 -I/contrib/netcdf-3.6.2/include' |
12 |
|
|
CPP='/lib/cpp -P' |
13 |
|
|
CC='mpcc_r -q64' |
14 |
|
|
FC='mpxlf_r -q64' |
15 |
|
|
LINK='mpxlf_r -q64' |
16 |
|
|
LIBS='-lmass -L/contrib/netcdf-3.6.2/lib' |
17 |
|
|
FFLAGS='-qfixed=132' |
18 |
|
|
if test "x$IEEE" = x ; then |
19 |
|
|
# No need for IEEE-754 |
20 |
|
|
FOPTIM='-O3 -Q -qarch=pwr6 -qtune=pwr6 -qcache=auto -qmaxmem=-1' |
21 |
|
|
CFLAGS='-O3 -Q -qarch=pwr6 -qtune=pwr6 -qcache=auto -qmaxmem=-1' |
22 |
|
|
else |
23 |
|
|
# Try to follow IEEE-754 |
24 |
|
|
FOPTIM='-O3 -qstrict -Q -qarch=pwr6 -qtune=pwr6 -qcache=auto -qmaxmem=-1' |
25 |
|
|
CFLAGS='-O3 -qstrict -Q -qarch=pwr6 -qtune=pwr6 -qcache=auto -qmaxmem=-1' |
26 |
|
|
fi |
27 |
|
|
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X" |
28 |
|
|
|
29 |
|
|
MPI_HEADER_FILES='mpif.h' |
30 |
|
|
MPI_HEADER_FILES_INC='./mpi_headers/mpif.h' |
31 |
|
|
MPIINCLUDEDIR='/usr/lpp/ppe.poe/include/thread64' |
32 |
|
|
|
33 |
|
|
HPMTINC='' |
34 |
|
|
HPMTLIB='-lhpm_r -lpmapi' |
35 |
|
|
GSLINC='-I/contrib/gsl-1.12/include' |
36 |
|
|
GSLLIB='-L/contrib/gsl-1.12/gsl-1.5/lib64 -lgsl -lgslcblas' |
37 |
|
|
PAPIINC='-I/contrib/papi-3.6.2/include' |
38 |
|
|
PAPILIB='-L/contrib/papi-3.6.2/lib -lpapi -lpmapi' |
39 |
|
|
|