/[MITgcm]/MITgcm/tools/build_options/linux_ia64_ifort_ollie
ViewVC logotype

Annotation of /MITgcm/tools/build_options/linux_ia64_ifort_ollie

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Thu Jun 2 07:29:26 2016 UTC (7 years, 11 months ago) by mlosch
Branch: MAIN
CVS Tags: checkpoint65x
rename ifort file for ollie to be consistent (stupid mistake in the first place)

1 mlosch 1.1 #!/bin/bash
2     #
3     # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_ifort_ollie,v 1.1 2016/05/27 15:25:57 mlosch Exp $
4     # $Name: $
5     #
6     # derived from linux_amd64_ifort, tested on ollie.awi.de (CRAY CS400)
7     #
8     # requires these modules
9     # module purge (to remove you have anything that may conflict with ifort)
10     # module load intel.compiler
11     # module load intel.mpi
12     # module load netcdf/4.4.0_intel
13    
14     # - For more speed, provided your data size doesn't exceed 2GB you can
15     # remove -fPIC which carries a performance penalty of 2-6%.
16     # - Provided that the libraries you link to are compiled with -fPIC this
17     # optfile should work.
18     # - You can replace -fPIC with -mcmodel=medium which may perform faster
19     # than -fPIC and still support data sizes over 2GB per process but all
20     # the libraries you link to must be compiled with -fPIC or -mcmodel=medium
21     #
22     # MPI : DON'T FORGET to set environment variable MPI_INC_DIR to the include
23     # directory of your MPI implementation
24    
25     if test "x$MPI" = xtrue ; then
26     CC=mpiicc
27     FC=mpiifort
28     F90C=mpiifort
29     # LINK="$F90C -ipo"
30     else
31     CC=icc
32     FC=ifort
33     F90C=ifort
34     # LINK="$F90C -ipo"
35     fi
36    
37     DEFINES='-DWORDLENGTH=4'
38     CPP='cpp -traditional -P'
39     F90FIXEDFORMAT='-fixed -Tf'
40     EXTENDED_SRC_FLAG='-132'
41     GET_FC_VERSION="--version"
42     OMPFLAG='-openmp'
43    
44     NOOPTFLAGS='-O0 -g'
45     NOOPTFILES=''
46    
47     FFLAGS="$FFLAGS -W0 -WB -convert big_endian -assume byterecl"
48     FFLAGS="$FFLAGS -fPIC"
49     #- might want to use '-r8' for fizhi pkg:
50     #FFLAGS="$FFLAGS -r8"
51    
52     if test "x$IEEE" = x ; then #- with optimisation:
53     # FOPTIM='-O2 -align -xHost -ipo'
54     # fast does not work because there are no static netcdf libaries
55     # FOPTIM='-fast'
56     # so we spell it out (-ipo makes linking very slow, so we will skip that, too)
57     # FOPTIM='-ipo -align -O3 -no-prec-div -fp-model fast=2 -xHost'
58     FOPTIM='-align -O3 -no-prec-div -fp-model fast=2 -xHost'
59     else
60     if test "x$DEVEL" = x ; then #- no optimisation + IEEE :
61     # "-mp" is for ieee "maintain precision"
62     FOPTIM='-O0 -noalign -xHost -ip -mp'
63     else #- development/check options:
64     # FFLAGS="$FFLAGS -warn all -warn nounused"
65     FFLAGS="$FFLAGS -warn unused"
66     FOPTIM="-fpe0 -check all -ftrapuv"
67     FOPTIM="$FOPTIM -O0 -noalign -g -traceback"
68     fi
69     fi
70    
71     F90FLAGS=$FFLAGS
72     F90OPTIM=$FOPTIM
73     CFLAGS='-O0 -fPIC -ip'
74    
75     INCLUDEDIRS=''
76     INCLUDES=''
77     LIBS=''
78    
79     if [ "x$NETCDF_ROOT" != x ] ; then
80     INCLUDEDIRS="${NETCDF_ROOT}/include"
81     INCLUDES="-I${NETCDF_ROOT}/include"
82     LIBS="-L${NETCDF_ROOT}/lib"
83     elif [ "x$NETCDF_HOME" != x ]; then
84     INCLUDEDIRS="${NETCDF_HOME}/include"
85     INCLUDES="-I${NETCDF_HOME}/include"
86     LIBS="-L${NETCDF_HOME}/lib"
87     elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
88     NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
89     NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
90     INCLUDEDIRS="${NETCDF_INC}"
91     INCLUDES="-I${NETCDF_INC}"
92     LIBS="-L${NETCDF_LIB}"
93     fi
94    
95     if [ -n "$MPI_INC_DIR" -a "x$MPI" = xtrue ] ; then
96     INCLUDES="$INCLUDES -I$MPI_INC_DIR"
97     INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR"
98     #- used for parallel (MPI) DIVA
99     MPIINCLUDEDIR="$MPI_INC_DIR"
100     #MPI_HEADER_FILES='mpif.h mpiof.h'
101     fi

  ViewVC Help
Powered by ViewVC 1.1.22