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

Annotation of /MITgcm/tools/build_options/linux_ia32_open64

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


Revision 1.4 - (hide annotations) (download)
Fri Aug 14 20:28:19 2009 UTC (14 years, 8 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63a, checkpoint63b, checkpoint62, checkpoint63, 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, checkpoint61v, checkpoint61w, checkpoint61u, checkpoint61z, checkpoint61x, checkpoint61y
Changes since 1.3: +6 -4 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 ce107 1.1 #!/bin/bash
2     #
3 jmc 1.4 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_open64,v 1.3 2009/06/22 23:13:30 ce107 Exp $
4 ce107 1.1 # $Name: $
5     #
6     # Build options for Fedore Core 4 i686 Pentium4
7     # tested on (Linux lagoon 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 i686 i386 GNU/Linux) system 20071121
8     #
9 jmc 1.4 # Note: use just -O2 optimisation to avoid some wierd problems with -O3
10     # on aces (open64/4.1 & 4.2) (ideal_2D_ocean)
11 ce107 1.1
12     CC=opencc
13     FC=openf90
14 utke 1.2 F90C=openf90
15     F90FIXEDFORMAT='-fixedform -x f95'
16 ce107 1.1 LD=openf90
17     DEFINES='-DWORDLENGTH=4'
18     CPP='cpp -traditional -P'
19     MAKEDEPEND=/usr/X11R6/bin/makedepend
20 ce107 1.3 NOOPTFLAGS='-O0 -m32 -g'
21 ce107 1.1 NOOPTFILES=''
22    
23     if test "x$DEVEL" != x ; then
24 ce107 1.3 FFLAGS='-m32 -convert big_endian -ffortran-bounds-check -trapuv -g'
25 ce107 1.1 else
26 ce107 1.3 FFLAGS='-m32 -convert big_endian'
27 ce107 1.1 fi
28    
29     if test "x$IEEE" = x ; then
30     # No need for IEEE-754
31 jmc 1.4 FOPTIM='-O2 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3' # -funsafe-math-optimizations'
32 ce107 1.1 else
33     # Try to follow IEEE-754
34 jmc 1.4 FOPTIM='-O2 -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math'
35 ce107 1.1 fi
36    
37     F90FLAGS=$FFLAGS
38     F90OPTIM=$FOPTIM
39 jmc 1.4 CFLAGS='-O2 -m32'
40 ce107 1.1 GSLLIB='-lgsl -lgslcblas'
41    
42     if [ "x$NETCDF_ROOT" != x ] ; then
43     INCLUDEDIR="${NETCDF_ROOT}/include"
44     INCLUDES="-I${NETCDF_ROOT}/include"
45     LIBDIR="${NETCDF_ROOT}/lib"
46     LIBS="-L${NETCDF_ROOT}/lib"
47     elif [ "x$NETCDF_HOME" != x ]; then
48     INCLUDEDIR="${NETCDF_HOME}/include"
49     INCLUDES="-I${NETCDF_HOME}/include"
50     LIBDIR="${NETCDF_HOME}/lib"
51     LIBS="-L${NETCDF_HOME}/lib"
52     elif [ "x$NETCDF_INC" != x -a "x$NETCDF_LIB" != x ]; then
53     NETCDF_INC=`echo $NETCDF_INC | sed 's/-I//g'`
54     NETCDF_LIB=`echo $NETCDF_LIB | sed 's/-L//g'`
55     INCLUDEDIR="${NETCDF_INC}"
56     INCLUDES="-I${NETCDF_INC}"
57     LIBDIR="${NETCDF_LIB}"
58     LIBS="-L${NETCDF_LIB}"
59     elif [ "x$NETCDF_INCDIR" != x -a "x$NETCDF_LIBDIR" != x ]; then
60     INCLUDEDIR="${NETCDF_INCDIR}"
61     INCLUDES="-I${NETCDF_INCDIR}"
62     LIBDIR="${NETCDF_LIBDIR}"
63     LIBS="-L${NETCDF_LIBDIR}"
64     elif test -d /usr/include/netcdf-3 ; then
65     INCLUDES='-I/usr/include/netcdf-3'
66     LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77'
67     elif test -d /usr/include/netcdf ; then
68     INCLUDES='-I/usr/include/netcdf'
69     elif test -d /usr/local/netcdf ; then
70     INCLUDES='-I/usr/local/netcdf/include'
71     LIBS='-L/usr/local/netcdf/lib'
72     elif test -d /usr/local/include/netcdf.inc ; then
73     INCLUDES='-I/usr/local/include'
74     LIBS='-L/usr/local/lib'
75     fi
76    

  ViewVC Help
Powered by ViewVC 1.1.22