1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_ifort+mpi_ice_nas,v 1.9 2011/12/23 14:04:59 dfer Exp $ |
4 |
# $Name: $ |
5 |
|
6 |
# tested on pleiades using Sandy Bridge nodes, which need mpt 2.06 or later |
7 |
# module load comp-intel/2011.2 mpi-sgi/mpt.2.06a67 netcdf/4.0 |
8 |
|
9 |
FC=ifort |
10 |
CC=icc |
11 |
|
12 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4' |
13 |
CPP='/lib/cpp -traditional -P' |
14 |
EXTENDED_SRC_FLAG='-132' |
15 |
OMPFLAG='-openmp' |
16 |
CFLAGS='-fPIC' |
17 |
LDADD='-shared-intel' |
18 |
|
19 |
LIBS='-L/nasa/sgi/mpt/2.04.10789/lib -lmpi -L/nasa/netcdf/4.0/lib -lnetcdf' |
20 |
INCLUDES='-I/nasa/sgi/mpt/2.04.10789/include -I/nasa/netcdf/4.0/include' |
21 |
INCLUDEDIRS='/nasa/sgi/mpt/2.04.10789/include' |
22 |
MPIINCLUDEDIR='/nasa/sgi/mpt/2.04.10789/include' |
23 |
MPI_HEADER_FILES='mpif.h mpiof.h mpif_parameters.h' |
24 |
MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h ./mpi_headers/mpif_parameters.h' |
25 |
|
26 |
NOOPTFLAGS='-O0 -fPIC' |
27 |
|
28 |
if test "x$IEEE" = x ; then |
29 |
# No need for IEEE-754 |
30 |
FFLAGS="$FFLAGS -fPIC -W0 -WB -convert big_endian -assume byterecl -align" |
31 |
FOPTIM='-O2 -ip -fp-model precise -axSSSE4.2,SSSE3 -traceback -ftz' |
32 |
NOOPTFILES='seaice_growth.F calc_oce_mxlayer.F fizhi_lsm.F fizhi_clockstuff.F' |
33 |
else |
34 |
# Try to follow IEEE-754 |
35 |
FFLAGS="$FFLAGS -fPIC -w95 -W0 -WB -convert big_endian -assume byterecl -noalign" |
36 |
FOPTIM='-O0' |
37 |
fi |
38 |
#- might want to use '-r8' for fizhi pkg: |
39 |
#FFLAGS="$FFLAGS -r8" |
40 |
|
41 |
#- For really big executable (> 2 GB), uncomment following 2 lines |
42 |
#FFLAGS="$FFLAGS -mcmodel=medium -shared-intel" |
43 |
#CFLAGS="$CFLAGS -mcmodel=medium -shared-intel" |