/[MITgcm]/MITgcm/tools/build_options/linux_ia32_open64.trapuv
ViewVC logotype

Annotation of /MITgcm/tools/build_options/linux_ia32_open64.trapuv

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


Revision 1.3 - (hide annotations) (download)
Fri Aug 14 20:28:19 2009 UTC (14 years, 9 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint61x, checkpoint61y, checkpoint61v, checkpoint61w, checkpoint61u, checkpoint61z, checkpoint62, checkpoint63
Changes since 1.2: +2 -2 lines
-reduce optimisation to just -O2 (-O3 unsafe on ao: break ideal_2D_ocean)
-multi-threaded: put 2 files in nooptlist (seem to fix monitor Pb with open64/4.1)

1 jmc 1.1 #!/bin/bash
2     #
3 jmc 1.3 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_open64.trapuv,v 1.2 2007/12/28 21:20:53 jmc Exp $
4 jmc 1.1 # $Name: $
5     #
6     # Build options for Fedore Core 4 i686 Pentium4
7     # tested on ACES, (Linux a54-1727-072 2.6.11.7smp-perfctr-tty #5 SMP Fri Apr 22 15:07:50 EDT 2005 i686 i686 i386 GNU/Linux) system 20071213
8     #
9 jmc 1.2 # Please note the appropriate module command:
10     # module add open64
11     #
12     # Set environment variable 'GSL_IEEE_MODE' if using "-gsl" option:
13     # sh,bash:
14     # export GSL_IEEE_MODE=double-precision,mask-underflow,mask-denormalized
15     # csh/tcsh:
16     # setenv GSL_IEEE_MODE double-precision,mask-underflow,mask-denormalized
17 jmc 1.1
18     CC=opencc
19     FC=openf90
20     LD=openf90
21     # due to Pb in version 4.0 of the compiler with option "-byteswapio" (or "-convert big_endian")
22     # use the MITgcm local version of bytes swapping:
23     DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4'
24     #DEFINES='-DWORDLENGTH=4'
25     CPP='cpp -traditional -P'
26     MAKEDEPEND=/usr/X11R6/bin/makedepend
27     NOOPTFLAGS='-O0 -m32 -g -fPIC'
28     NOOPTFILES='ini_vertical_grid.F'
29    
30     if test "x$DEVEL" != x ; then
31     FFLAGS='-m32 -fPIC -ffortran-bounds-check -trapuv -g'
32     # FFLAGS='-m32 -convert big_endian -fPIC -ffortran-bounds-check -trapuv -g'
33     else
34     FFLAGS='-m32 -fPIC'
35     # FFLAGS='-m32 -convert big_endian -fPIC'
36     fi
37    
38     if test "x$IEEE" = x ; then
39     # No need for IEEE-754
40 jmc 1.3 FOPTIM='-O2 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3' # -funsafe-math-optimizations'
41 jmc 1.1 else
42     # full checking options:
43 jmc 1.2 NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F'
44 jmc 1.1 FFLAGS='-m32 -fPIC -ffortran-bounds-check -trapuv -g'
45     # Try to follow IEEE-754
46     FOPTIM='-O0 -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math'
47     fi
48    
49     F90FLAGS=$FFLAGS
50     F90OPTIM=$FOPTIM
51     CFLAGS='-O2 -m32 -fPIC'
52     GSLLIB='-lgsl -lgslcblas'
53    
54 jmc 1.2 LIBS='-L/usr/local/pkg/netcdf/netcdf-3.5.1/g77/lib '
55     INCLUDES='-I/usr/local/pkg/netcdf/netcdf-3.5.1/g77/include '

  ViewVC Help
Powered by ViewVC 1.1.22