Warning, /tools/build_options/sp5+mpi_nas is written in an unsupported language. File is not indexed.
view on githubraw file Latest commit add29e06 on 2018-01-31 20:35:05 UTC
a070ee04df Patr*0001 #!/bin/bash
0002 #
0003 # tested on bluevista, ce107 Feb 2006
0004 # using the following invocation:
0005 # ../../../tools/genmake2 -mods=../code -of=../../../tools/build_options/sp5+mpi -make=gmake
0006 # modified for IBM Power 5+ "Schirra" at NASA/ARC, ce107, heimbach Oct 2007
0007
0008 S64='$(TOOLSDIR)/set64bitConst.sh'
0009 MAKEDEPEND=makedepend
0010
0011 # NML_TERMINATOR should enable using "&" as terminator, but doesnt work
7b8f62ab41 Jean*0012 DEFINES='-DALLOW_USE_MPI -DTARGET_AIX -DWORDLENGTH=4 -DNML_TERMINATOR'
a070ee04df Patr*0013
0014 INCLUDES="-I/usr/lpp/ppe.poe/include/thread64 -I${NETCDF}/include"
0015 CPP='/lib/cpp -P'
0016 # The -q64 is redundant on bluevista, default mode is 64bit
0017 CC='mpcc_r -q64'
0018 FC='mpxlf_r -q64'
0019 LINK='mpxlf_r -q64'
0020 LIBS="-lmass -L${NETCDF}/lib"
6144427bd2 Jean*0021 FFLAGS='-qfixed=132'
a070ee04df Patr*0022 if test "x$IEEE" = x ; then
0023 # No need for IEEE-754
0024 FOPTIM='-O3 -Q -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1'
0025 CFLAGS='-O3 -Q -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1'
0026 else
0027 # Try to follow IEEE-754
0028 FOPTIM='-O3 -qstrict -Q -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1'
0029 CFLAGS='-O3 -qstrict -Q -qarch=auto -qtune=auto -qcache=auto -qmaxmem=-1'
0030 fi
15978f0412 Jean*0031
0032 #- useful for netcdf
a070ee04df Patr*0033 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"
15978f0412 Jean*0034
0035 #- used for parallel (MPI) DIVA
a070ee04df Patr*0036 MPIINCLUDEDIR='/usr/lpp/ppe.poe/include/thread64'
15978f0412 Jean*0037 #MPI_HEADER_FILES='mpif.h'
0038
0039 #- useful for timing, but not all libs availale on bv
a070ee04df Patr*0040 HPMTINC=' '
0041 HPMTLIB='-lhpm_r -lpmapi'
0042 #GSLINC='-I/homebv/evangeli/gsl-1.5/include'
0043 #GSLLIB='-L/homebv/evangeli/gsl-1.5/lib64 -lgsl -lgslcblas'
0044 #PAPIINC='-I/usr/local/include'
0045 #PAPILIB='-L/usr/local/lib -lpapi'