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