1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_pgf77+mpi_aces,v 1.8 2010/12/13 04:50:57 jmc Exp $ |
4 |
# $Name: $ |
5 |
# |
6 |
# These are the build options used with the PGI compiler for the |
7 |
# 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/pgi |
13 |
# |
14 |
|
15 |
DEFINES='-DWORDLENGTH=4' |
16 |
CPP='cpp -traditional -P' |
17 |
|
18 |
FC='mpif77' |
19 |
CC='mpicc' |
20 |
if test "x$ALWAYS_USE_F90" = x1 ; then |
21 |
FC='mpif90' |
22 |
else |
23 |
DEFINES="$DEFINES -DNML_EXTENDED_F77" |
24 |
fi |
25 |
LINK=$FC |
26 |
|
27 |
EXTENDED_SRC_FLAG='-Mextend' |
28 |
GET_FC_VERSION="-V" |
29 |
|
30 |
INCLUDES='-I/usr/local/pkg/mpich/mpich-pgi/include -I/usr/local/pkg/pgi/pgi-5.2/linux86/5.2/include' |
31 |
LIBS='-L/usr/local/pkg/mpich/mpich-pgi/lib -L/usr/local/pkg/pgi/pgi-5.2/linux86/5.2/lib' |
32 |
|
33 |
if test "x$IEEE" = x ; then |
34 |
# No need for IEEE-754 |
35 |
FFLAGS="$FFLAGS -byteswapio -Mnodclchk -Mextend" |
36 |
# FOPTIM='-tp p6 -v -O2 -Munroll -Mvect=cachesize:512000,transform' |
37 |
FOPTIM='-fastsse -Mvect=cachesize:524288,transform' |
38 |
else |
39 |
# Try to follow IEEE-754 |
40 |
FFLAGS="$FFLAGS -byteswapio" |
41 |
FOPTIM='-O0 -Mscalarsse -Mcache_align -Mnoflushz -Kieee' |
42 |
fi |
43 |
#- might want to use '-r8' for fizhi pkg: |
44 |
#FFLAGS="$FFLAGS -r8" |