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

Annotation of /MITgcm/tools/build_options/linux_ia32_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'
18     NOOPTFILES=''
19    
20     INCLUDEDIRS=''
21     INCLUDES=''
22     LIBS=''
23    
24     if test "x$DEVEL" != x ; then
25     FFLAGS='-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='-r8 -i4 -W0 -WB -convert big_endian -assume byterecl'
28     fi
29    
30     if test "x$GENERIC" != x ; then
31     PROCF=-mia32 -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     if test "x$IEEE" = x ; then
38     FOPTIM="-O2 -align -ip -opt-streaming-stores auto $PROCF"
39     else
40     if test "x$DEVEL" != x ; then
41     FOPTIM="$PROCF"
42     else
43     FOPTIM="-O0 -fp-model source -noalign $PROCF"
44     fi
45     fi
46     F90FLAGS=$FFLAGS
47     F90OPTIM=$FOPTIM
48     CFLAGS="-O2 -ip $PROCF"
49    
50     if [ "x$NETCDF_ROOT" != x ] ; then
51     INCLUDEDIRS="${NETCDF_ROOT}/include"
52     INCLUDES="-I${NETCDF_ROOT}/include"
53     LIBS="-L${NETCDF_ROOT}/lib"
54     elif [ "x$NETCDF_HOME" != x ]; then
55     INCLUDEDIRS="${NETCDF_HOME}/include"
56     INCLUDES="-I${NETCDF_HOME}/include"
57     LIBS="-L${NETCDF_HOME}/lib"
58     elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
59     NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
60     NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
61     INCLUDEDIRS="${NETCDF_INC}"
62     INCLUDES="-I${NETCDF_INC}"
63     LIBS="-L${NETCDF_LIB}"
64     elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
65     INCLUDEDIRS="${NETCDF_INCDIR}"
66     INCLUDES="-I${NETCDF_INCDIR}"
67     LIBS="-L${NETCDF_LIBDIR}"
68     elif test -d /usr/include/netcdf-3 ; then
69     INCLUDEDIRS='/usr/include/netcdf-3'
70     INCLUDES='-I/usr/include/netcdf-3'
71     LIBS='-L/usr/lib/netcdf-3'
72     elif test -d /usr/local/pkg/netcdf ; then
73     INCLUDEDIRS='/usr/local/pkg/netcdf/include'
74     INCLUDES='-I/usr/local/pkg/netcdf/include'
75     LIBS='-L/usr/local/pkg/netcdf/lib'
76     elif test -d /usr/include/netcdf ; then
77     INCLUDEDIRS='/usr/include/netcdf'
78     INCLUDES='-I/usr/include/netcdf'
79     elif test -d /usr/local/netcdf ; then
80     INCLUDEDIRS='/usr/include/netcdf/include'
81     INCLUDES='-I/usr/local/netcdf/include'
82     LIBS='-L/usr/local/netcdf/lib'
83     elif test -f /usr/local/include/netcdf.inc ; then
84     INCLUDEDIRS='/usr/local/include'
85     INCLUDES='-I/usr/local/include'
86     LIBS='-L/usr/local/lib'
87     fi
88    

  ViewVC Help
Powered by ViewVC 1.1.22