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

Diff of /MITgcm/tools/build_options/sp4

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

revision 1.8 by jmc, Sun Mar 21 22:22:53 2010 UTC revision 1.9 by jmc, Tue Sep 13 14:38:19 2011 UTC
# Line 5  Line 5 
5    
6  #  tested on bluesky, ce107 Oct 2005  #  tested on bluesky, ce107 Oct 2005
7  #  using the following invocation:  #  using the following invocation:
8  #    ../../../tools/genmake2 -mods=../code -of=../../../tools/build_options/sp4 -make=gmake  #  ../../../tools/genmake2 -of=../../../tools/build_options/sp4 -mpi -make=gmake
9    
10  S64='$(TOOLSDIR)/set64bitConst.sh'  if test "x$MPI" = xtrue ; then
11  MAKEDEPEND=makedepend    CC='mpcc_r'
12  DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DTARGET_AIX -DWORDLENGTH=4'    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  #ph: e.g. bluesky.ucar.edu, marcellus.navo.hpc.mil  FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"
21  INCLUDES='-I/usr/lpp/ppe.poe/include/thread -I/usr/local/include'  S64='$(TOOLSDIR)/set64bitConst.sh'
22    DEFINES='-DTARGET_AIX -DWORDLENGTH=4'
23  CPP='/lib/cpp -P'  CPP='/lib/cpp -P'
24  CC='mpcc_r'  
25  FC='mpxlf95_r'  #FFLAGS="$FFLAGS -qfixed=72"
26  LINK='mpxlf95_r'  FFLAGS="$FFLAGS -qfixed=132 -bmaxdata:0x80000000"
27  LIBS='-L/usr/local/apps/mass -lmass -L/usr/local/lib/r4i4'  
28  FFLAGS='-qfixed=132 -bmaxdata:0x80000000'  if test "x$IEEE" = x ; then     #- with optimisation:
 if test "x$IEEE" = x ; then  
     #  No need for IEEE-754  
29      FOPTIM='-O3 -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'      FOPTIM='-O3 -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'
30      CFLAGS='-O3 -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'      CFLAGS=$FOPTIM
31  else  else                            #- no optimisation + IEEE :
     #  Try to follow IEEE-754  
32      FOPTIM='-O3 -qstrict -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'      FOPTIM='-O3 -qstrict -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'
33      CFLAGS='-O3 -qstrict -Q -qarch=pwr4 -qtune=pwr4 -qcache=auto -qmaxmem=-1'      CFLAGS=$FOPTIM
34  fi  fi
35  FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"  
 MPI_HEADER_FILES='mpif.h'  
 MPI_HEADER_FILES_INC='./mpi_headers/mpif.h'  
 MPIINCLUDEDIR='/usr/lpp/ppe.poe/include/thread'  
36  HPMTINC='-I/usr/local/hpmtoolkit/include'  HPMTINC='-I/usr/local/hpmtoolkit/include'
37  HPMTLIB='-L/usr/local/hpmtoolkit/lib -lhpm_r -lpmapi'  HPMTLIB='-L/usr/local/hpmtoolkit/lib -lhpm_r -lpmapi'
38  GSLINC='-I/home/bluesky/evangeli/gsl-1.5/include'  GSLINC='-I/home/bluesky/evangeli/gsl-1.5/include'
39  GSLLIB='-L/home/bluesky/evangeli/gsl-1.5/lib -lgsl -lgslcblas'  GSLLIB='-L/home/bluesky/evangeli/gsl-1.5/lib -lgsl -lgslcblas'
40  PAPIINC='-I/usr/local/include'  PAPIINC='-I/usr/local/include'
41  PAPILIB='-L/usr/local/lib -lpapi'  PAPILIB='-L/usr/local/lib -lpapi'
42    
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        MPIINCLUDEDIR='/usr/lpp/ppe.poe/include/thread'
50        MPI_HEADER_FILES='mpif.h'
51        MPI_HEADER_FILES_INC='./mpi_headers/mpif.h'
52    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

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.22