3 |
# $Header$ |
# $Header$ |
4 |
# $Name$ |
# $Name$ |
5 |
|
|
6 |
# tested on pleiades using: |
# Used to run the testreport on pleiades with: |
7 |
# module load comp-intel/11.1.046 mpi/mpt.1.25 netcdf/3.6.0/intel |
# module load comp-intel/2012.0.032 mpi-sgi/mpt.2.06rp16 netcdf/4.0 |
8 |
# |
# works on all types of nodes |
|
# Note: option -xSSE4.2 (left commented below) can be used on queue "normal_N" |
|
|
# (not compatible with "normal" queue processors) to get additional speed-up. |
|
9 |
|
|
10 |
FC=ifort |
FC=ifort |
11 |
|
CC=icc |
12 |
|
|
13 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4' |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4' |
14 |
CPP='/lib/cpp -traditional -P' |
CPP='/lib/cpp -traditional -P' |
17 |
CFLAGS='-fPIC' |
CFLAGS='-fPIC' |
18 |
LDADD='-shared-intel' |
LDADD='-shared-intel' |
19 |
|
|
20 |
LIBS='-L/nasa/sgi/mpt/1.25/lib -lmpi -L/nasa/netcdf/3.6.0/intel/lib -lnetcdf' |
LIBS='-L/nasa/sgi/mpt/2.06rp16/lib -lmpi -L/nasa/netcdf/4.0/lib -lnetcdf' |
21 |
INCLUDES='-I/nasa/sgi/mpt/1.25/include -I/nasa/netcdf/3.6.0/intel/include' |
INCLUDES='-I/nasa/sgi/mpt/2.06rp16/include -I/nasa/netcdf/4.0/include' |
22 |
INCLUDEDIRS='/nasa/sgi/mpt/1.25/include' |
INCLUDEDIRS='/nasa/sgi/mpt/2.06rp16/include' |
23 |
MPIINCLUDEDIR='/nasa/sgi/mpt/1.25/include' |
#- used for parallel (MPI) DIVA |
24 |
MPI_HEADER_FILES='mpif.h mpiof.h mpif_parameters.h' |
MPIINCLUDEDIR='/nasa/sgi/mpt/2.06rp16/include' |
25 |
MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h ./mpi_headers/mpif_parameters.h' |
#MPI_HEADER_FILES='mpif.h mpiof.h mpif_parameters.h' |
26 |
|
|
27 |
NOOPTFLAGS='-O0 -fPIC' |
NOOPTFLAGS='-O0 -fPIC' |
28 |
|
|
29 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
30 |
# No need for IEEE-754 |
# No need for IEEE-754 |
31 |
FFLAGS="$FFLAGS -fPIC -w95 -W0 -WB -convert big_endian -assume byterecl -align" |
FFLAGS="$FFLAGS -fPIC -W0 -WB -convert big_endian -assume byterecl -align" |
32 |
FOPTIM='-O2 -ip -xSSE4.1 -fp-model precise -ftz' |
FOPTIM='-O2 -ip -fp-model precise -axAVX -xSSE4.1 -traceback -ftz' |
|
# FOPTIM='-O2 -ip -xSSE4.2 -fp-model precise -ftz' |
|
33 |
NOOPTFILES='seaice_growth.F calc_oce_mxlayer.F fizhi_lsm.F fizhi_clockstuff.F' |
NOOPTFILES='seaice_growth.F calc_oce_mxlayer.F fizhi_lsm.F fizhi_clockstuff.F' |
34 |
else |
else |
35 |
# Try to follow IEEE-754 |
# Try to follow IEEE-754 |
36 |
FFLAGS="$FFLAGS -fPIC -w95 -W0 -WB -convert big_endian -assume byterecl -noalign" |
FFLAGS="$FFLAGS -fPIC -W0 -WB -convert big_endian -assume byterecl -noalign" |
37 |
FOPTIM='-O0' |
FOPTIM='-O0' |
38 |
fi |
fi |
39 |
#- might want to use '-r8' for fizhi pkg: |
#- might want to use '-r8' for fizhi pkg: |
40 |
#FFLAGS="$FFLAGS -r8" |
#FFLAGS="$FFLAGS -r8" |
41 |
|
|
42 |
#- For really big executable (> 2 GB), uncomment following 2 lines |
#- For really big executable (> 2 GB), uncomment following 2 lines |
43 |
#FFLAGS="$FFLAGS -mcmodel medium -shared-intel" |
#FFLAGS="$FFLAGS -mcmodel=medium -shared-intel" |
44 |
#CFLAGS='-mcmodel=medium' |
#CFLAGS="$CFLAGS -mcmodel=medium -shared-intel" |