1 |
edhill |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
jmc |
1.6 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_pgf77+mpi_aces,v 1.5 2008/05/09 16:38:34 jmc Exp $ |
4 |
|
|
# $Name: $ |
5 |
edhill |
1.1 |
# |
6 |
edhill |
1.3 |
# 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 |
edhill |
1.1 |
|
15 |
|
|
FC='mpif77' |
16 |
|
|
CC='mpicc' |
17 |
jmc |
1.5 |
if test "x$ALWAYS_USE_F90" = x1 ; then |
18 |
|
|
FC='mpif90' |
19 |
|
|
fi |
20 |
jmc |
1.6 |
LINK=$FC |
21 |
|
|
|
22 |
edhill |
1.3 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4' |
23 |
jmc |
1.6 |
CPP='cpp -traditional -P' |
24 |
|
|
EXTENDED_SRC_FLAG='-Mextend' |
25 |
|
|
|
26 |
edhill |
1.3 |
INCLUDES='-I/usr/local/pkg/mpich/mpich-pgi/include -I/usr/local/pkg/pgi/pgi-5.2/linux86/5.2/include' |
27 |
|
|
LIBS='-L/usr/local/pkg/mpich/mpich-pgi/lib -L/usr/local/pkg/pgi/pgi-5.2/linux86/5.2/lib' |
28 |
edhill |
1.1 |
|
29 |
|
|
if test "x$IEEE" = x ; then |
30 |
|
|
# No need for IEEE-754 |
31 |
jmc |
1.6 |
FFLAGS="$FFLAGS -byteswapio -Mnodclchk -Mextend" |
32 |
edhill |
1.3 |
# FOPTIM='-tp p6 -v -O2 -Munroll -Mvect=cachesize:512000,transform' |
33 |
|
|
FOPTIM='-fastsse -Mvect=cachesize:524288,transform' |
34 |
edhill |
1.1 |
else |
35 |
|
|
# Try to follow IEEE-754 |
36 |
jmc |
1.6 |
FFLAGS="$FFLAGS -byteswapio" |
37 |
jmc |
1.4 |
FOPTIM='-O0 -Mscalarsse -Mcache_align -Mnoflushz -Kieee' |
38 |
edhill |
1.1 |
fi |
39 |
jmc |
1.6 |
#- might want to use '-r8' for fizhi pkg: |
40 |
|
|
#FFLAGS="$FFLAGS -r8" |
41 |
edhill |
1.1 |
|