Warning, /tools/build_options/sp5+mpi 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
fe6da97029 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
0007 S64='$(TOOLSDIR)/set64bitConst.sh'
0008 MAKEDEPEND=makedepend
0009
0010 # NML_TERMINATOR should enable using "&" as terminator, but doesnt work
7b8f62ab41 Jean*0011 DEFINES='-DALLOW_USE_MPI -DTARGET_AIX -DWORDLENGTH=4 -DNML_TERMINATOR'
fe6da97029 Patr*0012
0013 INCLUDES='-I/usr/lpp/ppe.poe/include/thread64 -I/usr/local/include'
0014 CPP='/lib/cpp -P'
0015 # The -q64 is redundant on bluevista, default mode is 64bit
0016 CC='mpcc_r -q64'
2ada25f945 Patr*0017 FC='mpxlf_r -q64'
0018 LINK='mpxlf_r -q64'
fe6da97029 Patr*0019 LIBS='-lmass -L/usr/local/lib64/r4i4 -L/usr/local/lib64 -L/usr/local/lib'
6144427bd2 Jean*0020 FFLAGS='-qfixed=132'
fe6da97029 Patr*0021 if test "x$IEEE" = x ; then
0022 # No need for IEEE-754
0023 FOPTIM='-O3 -Q -qarch=pwr5 -qtune=pwr5 -qcache=auto -qmaxmem=-1'
0024 CFLAGS='-O3 -Q -qarch=pwr5 -qtune=pwr5 -qcache=auto -qmaxmem=-1'
0025 else
0026 # Try to follow IEEE-754
0027 FOPTIM='-O3 -qstrict -Q -qarch=pwr5 -qtune=pwr5 -qcache=auto -qmaxmem=-1'
0028 CFLAGS='-O3 -qstrict -Q -qarch=pwr5 -qtune=pwr5 -qcache=auto -qmaxmem=-1'
0029 fi
15978f0412 Jean*0030
0031 #- useful for netcdf
fe6da97029 Patr*0032 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X"
15978f0412 Jean*0033
0034 #- used for parallel (MPI) DIVA
fe6da97029 Patr*0035 MPIINCLUDEDIR='/usr/lpp/ppe.poe/include/thread64'
15978f0412 Jean*0036 #MPI_HEADER_FILES='mpif.h'
0037
0038 #- useful for timing, but not all libs availale on bv
fe6da97029 Patr*0039 #HPMTINC='-I/usr/local/include'
0040 #HPMTLIB='-L/usr/local/lib -lhpm -lpmapi'
0041 #GSLINC='-I/homebv/evangeli/gsl-1.5/include'
0042 #GSLLIB='-L/homebv/evangeli/gsl-1.5/lib64 -lgsl -lgslcblas'
0043 #PAPIINC='-I/usr/local/include'
0044 #PAPILIB='-L/usr/local/lib -lpapi'