1 |
#!/bin/bash |
#!/bin/bash |
2 |
# |
# |
3 |
# $Header$ |
# $Header$ |
4 |
# $Name$ |
# $Name$ |
5 |
# |
# |
6 |
# These are the build options used with the PGI compiler for the |
# 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" |
# daily testing on ACES (which are initiated by cron jobs on the "ao" |
12 |
# module add mpich/pgi |
# module add mpich/pgi |
13 |
# |
# |
14 |
|
|
15 |
|
DEFINES='-DWORDLENGTH=4' |
16 |
|
CPP='cpp -traditional -P' |
17 |
|
|
18 |
FC='mpif77' |
FC='mpif77' |
19 |
CC='mpicc' |
CC='mpicc' |
20 |
if test "x$ALWAYS_USE_F90" = x1 ; then |
if test "x$ALWAYS_USE_F90" = x1 ; then |
21 |
FC='mpif90' |
FC='mpif90' |
22 |
|
else |
23 |
|
DEFINES="$DEFINES -DNML_EXTENDED_F77" |
24 |
fi |
fi |
|
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4' |
|
|
INCLUDES='-I/usr/local/pkg/mpich/mpich-pgi/include -I/usr/local/pkg/pgi/pgi-5.2/linux86/5.2/include' |
|
|
CPP='cpp -traditional -P' |
|
25 |
LINK=$FC |
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' |
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 |
if test "x$IEEE" = x ; then |
34 |
# No need for IEEE-754 |
# No need for IEEE-754 |
35 |
FFLAGS='-byteswapio -r8 -Mnodclchk -Mextend' |
FFLAGS="$FFLAGS -byteswapio -Mnodclchk -Mextend" |
36 |
# FOPTIM='-tp p6 -v -O2 -Munroll -Mvect=cachesize:512000,transform' |
# FOPTIM='-tp p6 -v -O2 -Munroll -Mvect=cachesize:512000,transform' |
37 |
FOPTIM='-fastsse -Mvect=cachesize:524288,transform' |
FOPTIM='-fastsse -Mvect=cachesize:524288,transform' |
38 |
else |
else |
39 |
# Try to follow IEEE-754 |
# Try to follow IEEE-754 |
40 |
FFLAGS='-byteswapio -r8' |
FFLAGS="$FFLAGS -byteswapio" |
41 |
FOPTIM='-O0 -Mscalarsse -Mcache_align -Mnoflushz -Kieee' |
FOPTIM='-O0 -Mscalarsse -Mcache_align -Mnoflushz -Kieee' |
42 |
fi |
fi |
43 |
|
#- might want to use '-r8' for fizhi pkg: |
44 |
|
#FFLAGS="$FFLAGS -r8" |
45 |
|
|