1 |
mlosch |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
jmc |
1.2 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_pgf77_ocl,v 1.1 2004/12/22 08:29:10 mlosch Exp $ |
4 |
|
|
# $Name: $ |
5 |
|
|
|
6 |
mlosch |
1.1 |
# tested on ocl00.awi-bremerhaven.de |
7 |
|
|
# Linux ocl00 2.4.21-261-smp #1 SMP Wed Nov 17 22:05:59 UTC 2004 x86_64 unknown |
8 |
|
|
# pgf77 5.2-4 |
9 |
|
|
# Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved. |
10 |
|
|
# Copyright 2000-2004, STMicroelectronics, Inc. All Rights Reserved. |
11 |
|
|
|
12 |
|
|
FC='pgf77' |
13 |
|
|
CC='pgcc' |
14 |
|
|
LINK='pgf77' |
15 |
jmc |
1.2 |
|
16 |
|
|
DEFINES='-DWORDLENGTH=4' |
17 |
mlosch |
1.1 |
CPP='/usr/bin/cpp -P -traditional' |
18 |
jmc |
1.2 |
EXTENDED_SRC_FLAG='-Mextend' |
19 |
mlosch |
1.1 |
|
20 |
|
|
INCLUDES='-I/var/tmp.shared/netcdf-64/include' |
21 |
|
|
LIBS='-L/var/tmp.shared/netcdf-64/lib -lnetcdf' |
22 |
|
|
|
23 |
|
|
if test "x$IEEE" = x ; then |
24 |
|
|
# No need for IEEE-754 |
25 |
jmc |
1.2 |
FFLAGS="$FFLAGS -byteswapio -Mnodclchk" |
26 |
mlosch |
1.1 |
FOPTIM='-tp amd64 -O2 -Munroll' |
27 |
|
|
# -Mvect=cachesize:512000,transform |
28 |
|
|
else |
29 |
|
|
# Try to follow IEEE-754 |
30 |
jmc |
1.2 |
FFLAGS="$FFLAGS -byteswapio" |
31 |
mlosch |
1.1 |
FOPTIM='-tp amd64 -O0 -Munroll -Kieee' |
32 |
|
|
# -Mvect=cachesize:512000,transform |
33 |
|
|
fi |
34 |
jmc |
1.2 |
#- might want to use '-r8' for fizhi pkg: |
35 |
|
|
#FFLAGS="$FFLAGS -r8" |