3 |
# $Header$ |
# $Header$ |
4 |
# $Name$ |
# $Name$ |
5 |
|
|
6 |
# tested on pleiades using SLES11 and: |
# Used to run the testreport on pleiades with: |
7 |
# module load comp-intel/2011.2 mpi-sgi/mpt.2.04.10789 netcdf/4.0 |
# module load comp-intel/2016.2.181 mpi-sgi/mpt.2.14r19 netcdf/4.4.1.1_serial |
8 |
|
# works on all types of nodes |
9 |
|
|
10 |
FC=ifort |
FC=ifort |
11 |
|
CC=icc |
12 |
|
|
13 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4' |
CPP='/lib/cpp -traditional -P' |
14 |
CPP='/lib/cpp -traditional -P' |
DEFINES='-DALLOW_USE_MPI -DWORDLENGTH=4 -DINTEL_COMMITQQ' |
15 |
|
F90FIXEDFORMAT='-fixed -Tf' |
16 |
EXTENDED_SRC_FLAG='-132' |
EXTENDED_SRC_FLAG='-132' |
17 |
|
GET_FC_VERSION="--version" |
18 |
OMPFLAG='-openmp' |
OMPFLAG='-openmp' |
19 |
CFLAGS='-fPIC' |
|
20 |
|
#NOOPTFLAGS='-O1 -fp-model precise' |
21 |
|
NOOPTFLAGS='-O0' |
22 |
|
NOOPTFILES='' |
23 |
|
|
24 |
|
CFLAGS='-O0' |
25 |
|
FFLAGS="$FFLAGS -convert big_endian -assume byterecl" |
26 |
|
|
27 |
|
#- for big setups, compile & link with "-fPIC" or set memory-model to "medium": |
28 |
|
CFLAGS="$CFLAGS -fPIC" |
29 |
|
FFLAGS="$FFLAGS -fPIC" |
30 |
|
#- For really big executable (> 2 GB), uncomment following 2 lines |
31 |
|
#FFLAGS="$FFLAGS -mcmodel=medium -shared-intel" |
32 |
|
#CFLAGS="$CFLAGS -mcmodel=medium -shared-intel" |
33 |
|
#- might want to use '-r8' for fizhi pkg: |
34 |
|
#FFLAGS="$FFLAGS -r8" |
35 |
|
|
36 |
LDADD='-shared-intel' |
LDADD='-shared-intel' |
37 |
|
|
38 |
LIBS='-L/nasa/sgi/mpt/2.04.10789/lib -lmpi -L/nasa/netcdf/4.0/lib -lnetcdf' |
FFLAGS="$FFLAGS -W0 -WB" |
39 |
INCLUDES='-I/nasa/sgi/mpt/2.04.10789/include -I/nasa/netcdf/4.0/include' |
if test "x$IEEE" = x ; then #- with optimisation: |
40 |
INCLUDEDIRS='/nasa/sgi/mpt/2.04.10789/include' |
FOPTIM='-O2 -ipo -fp-model precise -align -axCORE-AVX2 -xSSE4.2 -traceback -ftz' |
41 |
MPIINCLUDEDIR='/nasa/sgi/mpt/2.04.10789/include' |
NOOPTFILES='seaice_growth.F calc_oce_mxlayer.F fizhi_lsm.F fizhi_clockstuff.F ini_parms.F' |
|
MPI_HEADER_FILES='mpif.h mpiof.h mpif_parameters.h' |
|
|
MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h ./mpi_headers/mpif_parameters.h' |
|
|
|
|
|
NOOPTFLAGS='-O0 -fPIC' |
|
|
|
|
|
if test "x$IEEE" = x ; then |
|
|
# No need for IEEE-754 |
|
|
FFLAGS="$FFLAGS -fPIC -W0 -WB -convert big_endian -assume byterecl -align" |
|
|
FOPTIM='-O2 -ip -fp-model precise -axSSSE4.2,SSSE3 -traceback -ftz' |
|
|
NOOPTFILES='seaice_growth.F calc_oce_mxlayer.F fizhi_lsm.F fizhi_clockstuff.F' |
|
42 |
else |
else |
43 |
# Try to follow IEEE-754 |
if test "x$DEVEL" = x ; then #- no optimisation + IEEE : |
44 |
FFLAGS="$FFLAGS -fPIC -w95 -W0 -WB -convert big_endian -assume byterecl -noalign" |
FOPTIM='-O0 -noalign' |
45 |
FOPTIM='-O0' |
else #- development/check options: |
46 |
|
#FFLAGS="$FFLAGS -debug all -debug-parameters all -fp-model strict" |
47 |
|
FOPTIM="-O0 -noalign -g -traceback" |
48 |
|
NOOPTFLAGS=$FOPTIM |
49 |
|
NOOPTFILES='adread_adwrite.F mdsio_rw_field.F mdsio_rw_slice.F' |
50 |
|
FOPTIM="$FOPTIM -warn all -warn nounused" |
51 |
|
FOPTIM="$FOPTIM -fpe0 -ftz -fp-stack-check -check all -ftrapuv" |
52 |
|
fi |
53 |
fi |
fi |
|
#- might want to use '-r8' for fizhi pkg: |
|
|
#FFLAGS="$FFLAGS -r8" |
|
54 |
|
|
55 |
#- For really big executable (> 2 GB), uncomment following 2 lines |
F90FLAGS=$FFLAGS |
56 |
#FFLAGS="$FFLAGS -mcmodel=medium -shared-intel" |
F90OPTIM=$FOPTIM |
57 |
#CFLAGS="$CFLAGS -mcmodel=medium" |
|
58 |
|
LIBS='-L/nasa/sgi/mpt/2.14r19/lib -lmpi -L/nasa/netcdf/4.0/lib -lnetcdf' |
59 |
|
INCLUDES='-I/nasa/sgi/mpt/2.14r19/include -I/nasa/netcdf/4.0/include' |
60 |
|
#INCLUDEDIRS='/nasa/sgi/mpt/2.14r19/include' |
61 |
|
|
62 |
|
#- used for parallel (MPI) DIVA |
63 |
|
MPIINCLUDEDIR='/nasa/sgi/mpt/2.14r19/include' |
64 |
|
#MPI_HEADER_FILES='mpif.h mpiof.h' |