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

Annotation of /MITgcm/tools/build_options/linux_ia32_g77

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


Revision 1.27 - (hide annotations) (download)
Wed Dec 15 17:08:24 2010 UTC (13 years, 4 months ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63a, checkpoint63b, checkpoint63, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x
Changes since 1.26: +2 -2 lines
switch to more standard "--version" for GET_FC_VERSION

1 edhill 1.1 #!/bin/bash
2     #
3 jmc 1.27 # $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_g77,v 1.26 2010/12/14 21:18:40 jmc Exp $
4 edhill 1.4 # $Name: $
5 edhill 1.1 #
6    
7     FC=g77
8 edhill 1.7 CC=gcc
9 jmc 1.26 DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4 -DNML_EXTENDED_F77'
10 edhill 1.1 CPP='cpp -traditional -P'
11     NOOPTFLAGS='-O0'
12 jmc 1.25 EXTENDED_SRC_FLAG='-ffixed-line-length-132'
13 jmc 1.27 GET_FC_VERSION="--version"
14 edhill 1.5
15 edhill 1.1 if test "x$IEEE" = x ; then
16 edhill 1.7 # No need for IEEE-754
17 edhill 1.1 FFLAGS='-Wimplicit -Wunused -Wuninitialized'
18     FOPTIM='-O3 -malign-double -funroll-loops'
19     else
20 edhill 1.7 # Try to follow IEEE-754
21 edhill 1.14 has_sse2=f
22     grep flags /proc/cpuinfo | grep sse2 > /dev/null 2>&1 && has_sse2=t
23 dimitri 1.18
24 edhill 1.14 if test "x$has_sse2" = xt ; then
25 edhill 1.16 FFLAGS='-Wimplicit -Wunused -mfpmath=sse -msse -msse2'
26 edhill 1.14 else
27 edhill 1.16 FFLAGS='-Wimplicit -Wunused -ffloat-store'
28 edhill 1.14 fi
29 edhill 1.15 # echo 'FFLAGS="'$FFLAGS'"'
30 edhill 1.1 FOPTIM='-O0 -malign-double'
31     fi
32    
33 edhill 1.12 if test -d /usr/include/netcdf-3 ; then
34     INCLUDES='-I/usr/include/netcdf-3'
35 edhill 1.22 if test -d /usr/lib/netcdf-3 ; then
36     if test -f /usr/lib/netcdf-3/libnetcdf_g77.a ; then
37     LIBS='-L/usr/lib/netcdf-3 -lnetcdf_g77'
38     else
39     LIBS='-L/usr/lib/netcdf-3'
40 edhill 1.19 fi
41     fi
42 edhill 1.12 elif test -d /usr/include/netcdf ; then
43     INCLUDES='-I/usr/include/netcdf'
44 heimbach 1.17 elif test -d /usr/local/netcdf ; then
45     INCLUDES='-I/usr/local/netcdf/include'
46     LIBS='-L/usr/local/netcdf/lib'
47 edhill 1.12 fi
48 ce107 1.20 GSLINC=''
49     GSLLIB='-lgsl -lgslcblas'
50     PAPIINC='-I/usr/local/pkg/papi/papi-3.0.8.1/p4/include'
51     PAPILIB='-L/usr/local/pkg/papi/papi-3.0.8.1/p4/lib -lpapi'
52 edhill 1.22

  ViewVC Help
Powered by ViewVC 1.1.22