3 |
# $Header$ |
# $Header$ |
4 |
# $Name$ |
# $Name$ |
5 |
|
|
6 |
# tested on pleiades using: |
# tested on pleiades using SLES11 and: |
7 |
# module load comp-intel/11.1.046 mpi/mpt.1.25 netcdf/3.6.0/intel |
# module load comp-intel/2011.2 mpi-sgi/mpt.2.04.10789 netcdf/4.0 |
|
# |
|
|
# 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. |
|
8 |
|
|
9 |
FC=ifort |
FC=ifort |
10 |
|
|
12 |
CPP='/lib/cpp -traditional -P' |
CPP='/lib/cpp -traditional -P' |
13 |
EXTENDED_SRC_FLAG='-132' |
EXTENDED_SRC_FLAG='-132' |
14 |
OMPFLAG='-openmp' |
OMPFLAG='-openmp' |
15 |
|
CFLAGS='-fPIC' |
16 |
|
LDADD='-shared-intel' |
17 |
|
|
18 |
LIBS='-L/nasa/sgi/mpt/1.25/lib -lmpi -L/nasa/netcdf/3.6.0/intel/lib -lnetcdf' |
LIBS='-L/nasa/sgi/mpt/2.04.10789/lib -lmpi -L/nasa/netcdf/4.0/lib -lnetcdf' |
19 |
INCLUDES='-I/nasa/sgi/mpt/1.25/include -I/nasa/netcdf/3.6.0/intel/include' |
INCLUDES='-I/nasa/sgi/mpt/2.04.10789/include -I/nasa/netcdf/4.0/include' |
20 |
INCLUDEDIRS='/nasa/sgi/mpt/1.25/include' |
INCLUDEDIRS='/nasa/sgi/mpt/2.04.10789/include' |
21 |
MPIINCLUDEDIR='/nasa/sgi/mpt/1.25/include' |
MPIINCLUDEDIR='/nasa/sgi/mpt/2.04.10789/include' |
22 |
MPI_HEADER_FILES='mpif.h mpiof.h mpif_parameters.h' |
MPI_HEADER_FILES='mpif.h mpiof.h mpif_parameters.h' |
23 |
MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h ./mpi_headers/mpif_parameters.h' |
MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h ./mpi_headers/mpif_parameters.h' |
24 |
|
|
25 |
NOOPTFLAGS='-O0' |
NOOPTFLAGS='-O0 -fPIC' |
26 |
|
|
27 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
28 |
# No need for IEEE-754 |
# No need for IEEE-754 |
29 |
FFLAGS="$FFLAGS -fp-model precise -ftz -w95 -W0 -WB -convert big_endian -assume byterecl" |
FFLAGS="$FFLAGS -fPIC -W0 -WB -convert big_endian -assume byterecl -align" |
30 |
FOPTIM='-O2 -align -ip -xSSE4.1' |
FOPTIM='-O2 -ip -fp-model precise -axSSSE4.2,SSSE3 -traceback -ftz' |
31 |
# FOPTIM='-O2 -align -ip -xSSE4.2' |
NOOPTFILES='seaice_growth.F calc_oce_mxlayer.F fizhi_lsm.F fizhi_clockstuff.F' |
|
NOOPTFILES='calc_oce_mxlayer.F fizhi_lsm.F fizhi_clockstuff.F' |
|
32 |
else |
else |
33 |
# Try to follow IEEE-754 |
# Try to follow IEEE-754 |
34 |
FFLAGS="$FFLAGS -w95 -W0 -WB -convert big_endian -assume byterecl" |
FFLAGS="$FFLAGS -fPIC -w95 -W0 -WB -convert big_endian -assume byterecl -noalign" |
35 |
FOPTIM='-O0 -noalign' |
FOPTIM='-O0' |
36 |
fi |
fi |
37 |
#- might want to use '-r8' for fizhi pkg: |
#- might want to use '-r8' for fizhi pkg: |
38 |
#FFLAGS="$FFLAGS -r8" |
#FFLAGS="$FFLAGS -r8" |
39 |
|
|
40 |
#- For really big executable (> 2 GB), uncomment following 2 lines |
#- For really big executable (> 2 GB), uncomment following 2 lines |
41 |
#FFLAGS="$FFLAGS -mcmodel medium -shared-intel" |
#FFLAGS="$FFLAGS -mcmodel=medium -shared-intel" |
42 |
#CFLAGS='-mcmodel=medium' |
#CFLAGS="$CFLAGS -mcmodel=medium" |