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

Annotation of /MITgcm/tools/build_options/linux_amd64_ifort+mpi_beagle

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


Revision 1.3 - (hide annotations) (download)
Fri Aug 28 18:02:28 2009 UTC (14 years, 9 months ago) by jahn
Branch: MAIN
CVS Tags: checkpoint61v
Changes since 1.2: +2 -1 lines
use LDFLAGS (from modules) for LIBS as FFLAGS gets reset by genmake2

1 jahn 1.1 #!/bin/bash
2     #
3 jahn 1.3 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_ifort+mpi_beagle,v 1.2 2009/06/15 19:05:46 jahn Exp $
4 jahn 1.2 # $Name: $
5 jahn 1.1 #
6 jahn 1.2 # These are the build options used with the Intel 10.x compiler for
7 jahn 1.1 # testing on Beagle.
8     #
9 jahn 1.2 # Use after
10 jahn 1.1 #
11 jahn 1.2 # module add darwin
12     # module add mitgcm
13     #
14     # (tested with darwin/20090605 mitgcm/20090605, i.e.,
15     # intel/10.0.025 mx/1.0 netcdf/3.6.2/intel-10.0.025 mpich-mx/1.2.7..7/intel-10.0.025)
16     #
17     # These modules set FFLAGS, CFLAGS and CPPFLAGS for mpich and netcdf.
18 jahn 1.1 #
19     # The SGE -V option for exporting environment variables may also be
20     # helpful if you encounter missing-library problems. Or,
21     # alternatively, one may choose to link with one of the intel
22     # "-static" or "-i-static" flags.
23    
24     FC='mpif77'
25     CC='mpicc'
26     F90C='mpif90 -fixed -c '
27     LINK='mpif77'
28 jahn 1.2 INCLUDES="$CPPFLAGS"
29 jahn 1.3 LIBS="$LDFLAGS"
30 jahn 1.1
31     # -DIFORT turns on ifort-specific declarations in darwin (RAND is not an intrinsic)
32     DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DIFORT'
33     CPP='cpp -traditional -P'
34    
35     NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F mom_calc_ke.F'
36    
37     if test "x$IEEE" = x ; then
38     # No need for IEEE-754
39     NOOPTFLAGS='-O2'
40     FOPTIM='-O3 -align'
41     # ifort options:
42     # -132 fixed-form line length is 132 characters
43     # -r8 REAL is REAL*8
44     # -i4 INTEGER is INTEGER*4
45     # -w95 don't warn about use of Fortran 95 extensions
46     # -W0 disable all warning messages
47     # -WB turns a compile-time bounds check error into a warning
48     # -xT optimize for Intel Core2 and Xeon 51xx
49     # -fno-alias don't assume aliasing (assume that different variables DON'T refer to the same memory location)
50     # -assume byterecl record length in OPEN statements is in bytes
51     # -convert big_endian binary files contain big-endian data
52 jahn 1.2 # -shared-intel avoids static library mismatch (?)
53     FFLAGS="$FFLAGS -132 -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian -shared-intel"
54 jahn 1.1 else
55     # Try to follow IEEE-754
56     NOOPTFLAGS='-O0'
57     # -CB check bounds
58     # FOPTIM='-O0 -noalign -CA -CB -CU -CV -CS'
59     FOPTIM='-O0 -noalign'
60     # -pc64 round floating point values to 64 bits
61     # one could also try
62     # -mp maintain precision
63 jahn 1.2 FFLAGS="$FFLAGS -pc64 -132 -r8 -i4 -w95 -W0 -WB -xT -fno-alias -assume byterecl -convert big_endian -shared-intel"
64 jahn 1.1 fi
65     F90FLAGS=$FFLAGS
66     F90OPTIM=$FOPTIM
67    
68     NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F'
69     NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F'
70 jahn 1.2

  ViewVC Help
Powered by ViewVC 1.1.22