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

Contents of /MITgcm/tools/build_options/linux_amd64_ifort_uv100

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


Revision 1.1 - (show annotations) (download)
Wed Mar 11 11:09:22 2015 UTC (9 years, 1 month ago) by mlosch
Branch: MAIN
CVS Tags: checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65k, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, HEAD
a specific opt file for uv100.awi.de, based on linux_amd64_ifort

1 #!/bin/bash
2 #
3 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia64_ifort,v 1.8 2013/07/22 18:40:45 jmc Exp $
4 # $Name: $
5
6 # Tested on uv100.awi.de (SGI UV 100, details:
7 # http://www.sgi.com/products/servers/uv/specs.html)
8 # 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%.
10 # 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
12 # process but all the libraries you link to must be compiled with
13 # -fPIC or -mcmodel=medium
14 # c) flags adjusted for ifort 12.1.0
15
16 FC=ifort
17 F90C=ifort
18 CC=icc
19 # requires that all static libraries are available:
20 #LINK='ifort -static'
21 LINK='ifort'
22 # for adjoint runs the default makedepend often cannot handle enough files
23 #MAKEDEPEND=tools_xmakedepend
24
25 DEFINES='-DWORDLENGTH=4'
26 CPP='cpp -traditional -P'
27 F90FIXEDFORMAT='-fixed -Tf'
28 EXTENDED_SRC_FLAG='-132'
29 GET_FC_VERSION="--version"
30 OMPFLAG='-openmp'
31
32 NOOPTFLAGS="-O0 -g -m64"
33 NOOPTFILES=''
34
35 MCMODEL='-fPIC'
36 # for large memory requirements uncomment this line
37 #MCMODEL='-mcmodel=medium -shared-intel'
38
39 FFLAGS="$FFLAGS -W0 -WB -convert big_endian -assume byterecl $MCMODEL"
40 #- might want to use '-r8' for fizhi pkg:
41 #FFLAGS="$FFLAGS -r8"
42
43 if test "x$IEEE" = x ; then #- with optimisation:
44 FOPTIM='-O3 -align'
45 # does not work when -static does not work
46 # FOPTIM='-fast -align'
47 # instead you can use
48 # FOPTIM='-O3 -ipo -align'
49 else
50 if test "x$DEVEL" = x ; then #- no optimisation + IEEE :
51 FOPTIM='-O0 -noalign -fp-model precise'
52 # -fltconsistency
53 else #- development/check options:
54 FFLAGS="$FFLAGS -warn all -warn nounused"
55 FOPTIM="-fpe0 -fp-model precise -fp-model except -check all -ftrapuv"
56 FOPTIM="$FOPTIM -O0 -noalign -g -traceback"
57 fi
58 fi
59
60 F90FLAGS=$FFLAGS
61 F90OPTIM=$FOPTIM
62 CFLAGS="-O0 -ip $MCMODEL"
63
64 INCLUDEDIRS=''
65 INCLUDES=''
66 LIBS=''
67
68 if [ "x$NETCDF_ROOT" != x ] ; then
69 INCLUDEDIRS="${NETCDF_ROOT}/include"
70 INCLUDES="-I${NETCDF_ROOT}/include"
71 LIBS="-L${NETCDF_ROOT}/lib"
72 elif [ "x$NETCDF_HOME" != x ]; then
73 INCLUDEDIRS="${NETCDF_HOME}/include"
74 INCLUDES="-I${NETCDF_HOME}/include"
75 LIBS="-L${NETCDF_HOME}/lib"
76 elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
77 NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
78 NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
79 INCLUDEDIRS="${NETCDF_INC}"
80 INCLUDES="-I${NETCDF_INC}"
81 LIBS="-L${NETCDF_LIB}"
82 elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
83 INCLUDEDIRS="${NETCDF_INCDIR}"
84 INCLUDES="-I${NETCDF_INCDIR}"
85 LIBS="-L${NETCDF_LIBDIR}"
86 elif test -d /usr/include/netcdf-3 ; then
87 INCLUDEDIRS='/usr/include/netcdf-3'
88 INCLUDES='-I/usr/include/netcdf-3'
89 LIBS='-L/usr/lib/netcdf-3 -L/usr/lib64/netcdf-3'
90 elif test -d /usr/include/netcdf ; then
91 INCLUDEDIRS='/usr/include/netcdf'
92 INCLUDES='-I/usr/include/netcdf'
93 elif test -d /usr/local/netcdf ; then
94 INCLUDEDIRS='/usr/include/netcdf/include'
95 INCLUDES='-I/usr/local/netcdf/include'
96 LIBS='-L/usr/local/netcdf/lib'
97 elif test -d /usr/local/include/netcdf.inc ; then
98 INCLUDEDIRS='/usr/local/include'
99 INCLUDES='-I/usr/local/include'
100 LIBS='-L/usr/local/lib64'
101 fi
102 # uv100 special:
103 # special libraries are require for specific versions of ifort/netcdf
104 if [ "x$NETCDF_LD" != x ] ; then
105 LIBS="$NETCDF_LD"
106 fi
107
108 if [ -n "$MPI_INC_DIR" -a "x$MPI" = xtrue ] ; then
109 LIBS="$LIBS -lmpi"
110 INCLUDES="$INCLUDES -I$MPI_INC_DIR"
111 INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR"
112 #- used for parallel (MPI) DIVA
113 MPIINCLUDEDIR="$MPI_INC_DIR"
114 #MPI_HEADER_FILES='mpif.h mpiof.h'
115 fi

  ViewVC Help
Powered by ViewVC 1.1.22