7 |
# http://www.sgi.com/products/servers/uv/specs.html) |
# http://www.sgi.com/products/servers/uv/specs.html) |
8 |
# a) For more speed, provided your data size does not exceed 2GB you can |
# a) For more speed, provided your data size does not exceed 2GB you can |
9 |
# remove -fPIC which carries a performance penalty of 2-6%. |
# remove -fPIC which carries a performance penalty of 2-6%. |
10 |
# b) You can replace -fPIC with '-mcmodel=medium -shared-intel' which may |
# b) You can replace -fPIC with '-mcmodel=medium -shared-intel' which may |
11 |
# perform faster than -fPIC and still support data sizes over 2GB per |
# perform faster than -fPIC and still support data sizes over 2GB per |
12 |
# process but all the libraries you link to must be compiled with |
# process but all the libraries you link to must be compiled with |
13 |
# -fPIC or -mcmodel=medium |
# -fPIC or -mcmodel=medium |
14 |
# c) flags adjusted for ifort 12.1.0 |
# c) flags adjusted for ifort 12.1.0 |
15 |
|
|
24 |
|
|
25 |
DEFINES='-DWORDLENGTH=4' |
DEFINES='-DWORDLENGTH=4' |
26 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
27 |
F90FIXEDFORMAT='-fixed -Tf' |
F90FIXEDFORMAT='-fixed -Tf' |
28 |
EXTENDED_SRC_FLAG='-132' |
EXTENDED_SRC_FLAG='-132' |
29 |
#OMPFLAG='-openmp' |
#OMPFLAG='-openmp' |
30 |
|
|
31 |
INCLUDEDIRS='' |
NOOPTFLAGS="-O0 -g -m64" |
32 |
INCLUDES='' |
NOOPTFILES='' |
|
LIBS='' |
|
33 |
|
|
34 |
MCMODEL='-fPIC' |
MCMODEL='-fPIC' |
35 |
# for large memory requirements uncomment this line |
# for large memory requirements uncomment this line |
36 |
#MCMODEL='-mcmodel=medium -shared-intel' |
#MCMODEL='-mcmodel=medium -shared-intel' |
|
FFLAGS="-W0 -WB -convert big_endian -assume byterecl $MCMODEL" |
|
|
|
|
|
NOOPTFLAGS="-O0 -g -m64" |
|
|
NOOPTFILES='' |
|
37 |
|
|
38 |
if test "x$DEVEL" != x ; then |
FFLAGS="$FFLAGS -W0 -WB -convert big_endian -assume byterecl $MCMODEL" |
|
FFLAGS="$FFLAGS -O0 -g -noalign -check all -fpe0 -traceback -ftrapuv -fp-model precise -fp-model except -warn all" |
|
|
else |
|
|
FFLAGS="$FFLAGS" |
|
|
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 |
# Note that the -mp switch is for ieee "maintain precision" and is |
if test "x$IEEE" = x ; then #- with optimisation: |
|
# roughly equivalent to -ieee |
|
|
if test "x$IEEE" = x ; then |
|
|
# No need for IEEE-754 |
|
43 |
FOPTIM='-O3 -align' |
FOPTIM='-O3 -align' |
44 |
# does not work when -static does not work |
# does not work when -static does not work |
45 |
# FOPTIM='-fast -align' |
# FOPTIM='-fast -align' |
46 |
# instead you can use |
# instead you can use |
47 |
# FOPTIM='-O3 -ipo -align' |
# FOPTIM='-O3 -ipo -align' |
48 |
else |
else |
49 |
# Try to follow IEEE-754 |
if test "x$DEVEL" = x ; then #- no optimisation + IEEE : |
50 |
FOPTIM='-O0 -noalign -fp-model precise' |
FOPTIM='-O0 -noalign -fp-model precise' |
51 |
# -fltconsistency' |
# -fltconsistency |
52 |
|
else #- development/check options: |
53 |
|
FOPTIM='-O0 -noalign -fp-model precise' |
54 |
|
FOPTIM="$FOPTIM -g -check all -fpe0 -traceback -ftrapuv -fp-model except -warn all" |
55 |
|
fi |
56 |
fi |
fi |
57 |
|
|
58 |
F90FLAGS=$FFLAGS |
F90FLAGS=$FFLAGS |
59 |
F90OPTIM=$FOPTIM |
F90OPTIM=$FOPTIM |
60 |
CFLAGS="-O0 -ip $MCMODEL" |
CFLAGS="-O0 -ip $MCMODEL" |
61 |
|
|
62 |
|
INCLUDEDIRS='' |
63 |
|
INCLUDES='' |
64 |
|
LIBS='' |
65 |
|
|
66 |
if [ "x$NETCDF_ROOT" != x ] ; then |
if [ "x$NETCDF_ROOT" != x ] ; then |
67 |
INCLUDEDIRS="${NETCDF_ROOT}/include" |
INCLUDEDIRS="${NETCDF_ROOT}/include" |
68 |
INCLUDES="-I${NETCDF_ROOT}/include" |
INCLUDES="-I${NETCDF_ROOT}/include" |
102 |
LIBS="$LIBS -lmpi" |
LIBS="$LIBS -lmpi" |
103 |
INCLUDES="$INCLUDES -I$MPI_INC_DIR" |
INCLUDES="$INCLUDES -I$MPI_INC_DIR" |
104 |
INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR" |
INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR" |
105 |
|
#- used for parallel (MPI) DIVA |
106 |
MPIINCLUDEDIR="$MPI_INC_DIR" |
MPIINCLUDEDIR="$MPI_INC_DIR" |
107 |
MPI_HEADER_FILES='mpif.h mpiof.h' |
#MPI_HEADER_FILES='mpif.h mpiof.h' |
|
MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h' |
|
108 |
fi |
fi |
109 |
|
|