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

Annotation of /MITgcm/tools/build_options/linux_amd64_ifort11

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


Revision 1.1 - (hide annotations) (download)
Mon Jun 22 23:13:30 2009 UTC (14 years, 10 months ago) by ce107
Branch: MAIN
CVS Tags: checkpoint62, checkpoint62b, checkpoint62a, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61z, checkpoint61x, checkpoint61y
New and updated optfiles for Intel 11, 10.1 and Pathscale/Open64.

1 ce107 1.1 #!/bin/bash
2     #
3     # Constantinos Evangelinos
4     #
5     # Build options for the intel 11 fortran compiler
6    
7     FC=ifort
8     F90C=ifort
9     CC=icc
10     LINK=ifort
11    
12     DEFINES='-DWORDLENGTH=4'
13     CPP='cpp -traditional -P'
14     F90FIXEDFORMAT='-fixed -Tf'
15     EXTENDED_SRC_FLAG='-132'
16    
17     NOOPTFLAGS='-O0 -g -m64 -fPIC'
18     NOOPTFILES=''
19    
20     INCLUDEDIRS=''
21     INCLUDES=''
22     LIBS=''
23    
24     if test "x$DEVEL" != x ; then
25     FFLAGS='-m64 -fPIC -r8 -i4 -convert big_endian -assume byterecl -O0 -g -debug all -debug-parameters all -noalign -fp-stack-check -check all -fpe0 -traceback -ftrapuv -fp-model strict -warn all'
26     else
27     FFLAGS='-m64 -fPIC -r8 -i4 -W0 -WB -convert big_endian -assume byterecl'
28     fi
29    
30     if test "x$GENERIC" != x ; then
31     PROCF=-axSSE4.2,SSE4.1,SSSE3,SSE3,SSE2
32     else
33     PROCF=-xHost
34     fi
35     # Note that the -mp switch is for ieee "maintain precision" and is
36     # roughly equivalent to -ieee
37     # Note the addition of -g to circumvent bug with Intel 11.
38     if test "x$IEEE" = x ; then
39     FOPTIM="-O2 -align -ip -opt-streaming-stores auto $PROCF"
40     else
41     if test "x$DEVEL" != x ; then
42     FOPTIM="$PROCF"
43     else
44     FOPTIM="-O0 -fp-model source -noalign $PROCF"
45     fi
46     fi
47     F90FLAGS=$FFLAGS
48     F90OPTIM=$FOPTIM
49     CFLAGS="-O2 -ip -m64 -fPIC $PROCF"
50    
51     if [ "x$NETCDF_ROOT" != x ] ; then
52     INCLUDEDIRS="${NETCDF_ROOT}/include"
53     INCLUDES="-I${NETCDF_ROOT}/include"
54     LIBS="-L${NETCDF_ROOT}/lib64 -L${NETCDF_ROOT}/lib"
55     elif [ "x$NETCDF_HOME" != x ]; then
56     INCLUDEDIRS="${NETCDF_HOME}/include"
57     INCLUDES="-I${NETCDF_HOME}/include"
58     LIBS="-L${NETCDF_ROOT}/lib64 -L${NETCDF_HOME}/lib"
59     elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
60     NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
61     NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
62     INCLUDEDIRS="${NETCDF_INC}"
63     INCLUDES="-I${NETCDF_INC}"
64     LIBS="-L${NETCDF_LIB}"
65     elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
66     INCLUDEDIRS="${NETCDF_INCDIR}"
67     INCLUDES="-I${NETCDF_INCDIR}"
68     LIBS="-L${NETCDF_LIBDIR}"
69     elif test -d /usr/include/netcdf-3 ; then
70     INCLUDEDIRS='/usr/include/netcdf-3'
71     INCLUDES='-I/usr/include/netcdf-3'
72     LIBS='-L/usr/lib64/netcdf-3 -L/usr/lib/netcdf-3'
73     elif test -d /usr/local/pkg/netcdf ; then
74     INCLUDEDIRS='/usr/local/pkg/netcdf/include'
75     INCLUDES='-I/usr/local/pkg/netcdf/include'
76     LIBS='-L/usr/local/pkg-x86_64/netcdf/lib64 -L/usr/local/pkg-x86_64/netcdf/lib -L/usr/local/pkg/netcdf/lib64 -L/usr/local/pkg/netcdf/lib'
77     elif test -d /usr/include/netcdf ; then
78     INCLUDEDIRS='/usr/include/netcdf'
79     INCLUDES='-I/usr/include/netcdf'
80     elif test -d /usr/local/netcdf ; then
81     INCLUDEDIRS='/usr/include/netcdf/include'
82     INCLUDES='-I/usr/local/netcdf/include'
83     LIBS='-L/usr/local/netcdf/lib64 -L/usr/local/netcdf/lib'
84     elif test -f /usr/local/include/netcdf.inc ; then
85     INCLUDEDIRS='/usr/local/include'
86     INCLUDES='-I/usr/local/include'
87     LIBS='-L/usr/local/lib64 -L/usr/local/lib'
88     fi
89    

  ViewVC Help
Powered by ViewVC 1.1.22