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

Annotation of /MITgcm/tools/build_options/linux_amd64_ifort

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


Revision 1.1 - (hide annotations) (download)
Fri Feb 23 02:52:25 2007 UTC (17 years, 2 months ago) by ce107
Branch: MAIN
CVS Tags: checkpoint58w_post, checkpoint58x_post, checkpoint58y_post
New optfiles for ifort on AMD64 architectures. The MPI implementation is left
to be generic provided it has compiler drivers mpif77 etc. and its include
directory is specified in the environment variable MPI_INC_DIR

1 ce107 1.1 #!/bin/bash
2     #
3     # composed and tested by ce107 on ross/weddell
4     # for more speed on Core2 processors replace -xW with -xT
5     # for more speed on Pentium4 based EM64T processors replaces -xW with -xP
6    
7     FC=ifort
8     F90C=ifort
9     CC=icc
10     LINK='mpif90 -i-static -no-ipo'
11    
12     DEFINES='-DWORDLENGTH=4'
13     CPP='cpp -traditional -P'
14     F90FIXEDFORMAT='-fixed -Tf'
15    
16     NOOPTFLAGS='-O0 -g -m64 -fPIC'
17     NOOPTFILES=''
18    
19     INCLUDEDIRS=''
20     INCLUDES=''
21     LIBS=''
22    
23     if test "x$DEVEL" != x ; then
24     FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl -fPIC -O0 -g -noalign -fpstkchk -check all -fpe0 -traceback -ftrapuv -fpmodel except -warn all'
25     else
26     FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecli -fPIC'
27     fi
28    
29     # Note that the -mp switch is for ieee "maintain precision" and is
30     # roughly equivalent to -ieee
31     if test "x$IEEE" = x ; then
32     # No need for IEEE-754
33     FOPTIM='-O3 -align -xW -ip'
34     else
35     # Try to follow IEEE-754
36     FOPTIM='-O2 -align -xW -ip -mp'
37     fi
38     F90FLAGS=$FFLAGS
39     F90OPTIM=$FOPTIM
40     CFLAGS='-O3 -ip -fPIC'
41    
42     if [ "x$NETCDF_ROOT" != x ] ; then
43     INCLUDEDIRS="${NETCDF_ROOT}/include"
44     INCLUDES="-I${NETCDF_ROOT}/include"
45     LIBS="-L${NETCDF_ROOT}/lib"
46     elif [ "x$NETCDF_HOME" != x ]; then
47     INCLUDEDIRS="${NETCDF_HOME}/include"
48     INCLUDES="-I${NETCDF_HOME}/include"
49     LIBS="-L${NETCDF_HOME}/lib"
50     elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
51     NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
52     NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
53     INCLUDEDIRS="${NETCDF_INC}"
54     INCLUDES="-I${NETCDF_INC}"
55     LIBS="-L${NETCDF_LIB}"
56     elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
57     INCLUDEDIRS="${NETCDF_INCDIR}"
58     INCLUDES="-I${NETCDF_INCDIR}"
59     LIBS="-L${NETCDF_LIBDIR}"
60     elif test -d /usr/include/netcdf-3 ; then
61     INCLUDEDIRS='/usr/include/netcdf-3'
62     INCLUDES='-I/usr/include/netcdf-3'
63     LIBS='-L/usr/lib/netcdf-3 -L/usr/lib64/netcdf-3'
64     elif test -d /usr/include/netcdf ; then
65     INCLUDEDIRS='/usr/include/netcdf'
66     INCLUDES='-I/usr/include/netcdf'
67     elif test -d /usr/local/netcdf ; then
68     INCLUDEDIRS='/usr/include/netcdf/include'
69     INCLUDES='-I/usr/local/netcdf/include'
70     LIBS='-L/usr/local/netcdf/lib'
71     elif test -d /usr/local/include/netcdf.inc ; then
72     INCLUDEDIRS='/usr/local/include'
73     INCLUDES='-I/usr/local/include'
74     LIBS='-L/usr/local/lib64'
75     fi

  ViewVC Help
Powered by ViewVC 1.1.22