1 |
edhill |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
jmc |
1.3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_g77+mpi_aces,v 1.2 2006/07/29 17:24:49 jmc Exp $ |
4 |
edhill |
1.1 |
# $Name: $ |
5 |
|
|
# |
6 |
jmc |
1.2 |
# These are the build options used with the GNU compiler for the |
7 |
edhill |
1.1 |
# daily testing on ACES (which are initiated by cron jobs on the "ao" |
8 |
|
|
# head node). |
9 |
|
|
# |
10 |
|
|
# Please note the appropriate module command: |
11 |
|
|
# |
12 |
|
|
# module add mpich/gnu |
13 |
|
|
# |
14 |
|
|
|
15 |
|
|
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -D_BYTESWAPIO -DWORDLENGTH=4' |
16 |
|
|
CPP='cpp -traditional -P' |
17 |
|
|
|
18 |
|
|
FC='mpif77' |
19 |
|
|
CC='mpicc' |
20 |
|
|
LINK='mpif77' |
21 |
|
|
LIBS='-L/usr/local/pkg/mpich/mpich-gcc/lib ' |
22 |
|
|
INCLUDES='-I/usr/local/pkg/mpich/mpich-gcc/include ' |
23 |
|
|
|
24 |
|
|
if test "x$IEEE" = x ; then |
25 |
|
|
# No need for IEEE-754 |
26 |
jmc |
1.3 |
# FFLAGS='-Wimplicit -Wunused -Wuninitialized' |
27 |
|
|
# FOPTIM='-O3 -malign-double -funroll-loops' |
28 |
|
|
#- note(jmc): |
29 |
|
|
# -O3 is not always faster than -O2 ; sse & sse2 are faster ; |
30 |
|
|
# Problems with "-funroll-loops" for some set-up, e.g. tutorial_helt_suarez_cs |
31 |
|
|
FFLAGS='-Wimplicit -Wunused -mfpmath=sse -msse -msse2' |
32 |
|
|
FOPTIM='-O3 -malign-double' |
33 |
edhill |
1.1 |
else |
34 |
|
|
# Try to follow IEEE-754 |
35 |
|
|
# FFLAGS='-Wimplicit -Wunused -ffloat-store' |
36 |
|
|
FFLAGS='-Wimplicit -Wunused -mfpmath=sse -msse -msse2' |
37 |
|
|
FOPTIM='-O0 -malign-double' |
38 |
|
|
fi |
39 |
|
|
NOOPTFLAGS='-O0' |
40 |
|
|
|