--- MITgcm/tools/build_options/sp4-32bit 2005/01/13 00:16:31 1.1 +++ MITgcm/tools/build_options/sp4-32bit 2005/12/22 01:38:05 1.2 @@ -1,6 +1,6 @@ #!/bin/bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/Attic/sp4-32bit,v 1.1 2005/01/13 00:16:31 ce107 Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/build_options/Attic/sp4-32bit,v 1.2 2005/12/22 01:38:05 ce107 Exp $ # # tested on bluesky, ce107 Jan 2005 @@ -9,12 +9,27 @@ S64='$(TOOLSDIR)/set64bitConst.sh' MAKEDEPEND=makedepend DEFINES='-DTARGET_AIX -DWORDLENGTH=4' +INCLUDES='-I/usr/local/include' CPP='/lib/cpp -P' CC='cc_r' FC='xlf95_r' -LINK='mpxlf95_r' -LIBS='-L/usr/local/apps/mass -lmass' +LINK='xlf95_r' +LIBS='-L/usr/local/apps/mass -lmass -L/usr/local/lib32/r4i4' FFLAGS='-qfixed=132 -bmaxdata:0x80000000' -FOPTIM='-O3 -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' +if test "x$IEEE" = x ; then + # No need for IEEE-754 + FOPTIM='-O3 -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' + CFLAGS='-O3 -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' +else + # Try to follow IEEE-754 + FOPTIM='-O3 -qstrict -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' + CFLAGS='-O3 -qstrict -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1' +fi FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X" +HPMTINC='-I/usr/local/hpmtoolkit/include' +HPMTLIB='-L/usr/local/hpmtoolkit/lib -lhpm_r -lpmapi' +GSLINC='-I/home/bluesky/evangeli/gsl-1.5/include' +GSLLIB='-L/home/bluesky/evangeli/gsl-1.5/lib -lgsl -lgslcblas' +PAPIINC='-I/usr/local/include' +PAPILIB='-L/usr/local/lib -lpapi'