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