1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_pgf77+mpi_ocl,v 1.3 2010/03/21 21:34:01 jmc Exp $ |
4 |
# $Name: $ |
5 |
|
6 |
# 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 |
|
16 |
MPI='true' |
17 |
|
18 |
DEFINES='-DWORDLENGTH=4 -DNML_EXTENDED_F77' |
19 |
CPP='/usr/bin/cpp -P -traditional' |
20 |
EXTENDED_SRC_FLAG='-Mextend' |
21 |
GET_FC_VERSION="-V" |
22 |
|
23 |
INCLUDES='-I/opt/scali/include -I/var/tmp.shared/netcdf-64/include' |
24 |
LIBS='-L/opt/scali/lib64 -L/var/tmp.shared/netcdf-64/lib -lfmpi -lmpi -lnetcdf' |
25 |
|
26 |
if test "x$IEEE" = x ; then |
27 |
# No need for IEEE-754 |
28 |
FFLAGS="$FFLAGS -byteswapio -Mnodclchk" |
29 |
FOPTIM='-tp amd64 -O2 -Munroll' |
30 |
else |
31 |
# Try to follow IEEE-754 |
32 |
FFLAGS="$FFLAGS -byteswapio" |
33 |
FOPTIM='-tp amd64 -O0 -Munroll -Kieee' |
34 |
fi |
35 |
#- might want to use '-r8' for fizhi pkg: |
36 |
#FFLAGS="$FFLAGS -r8" |