1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_pgf77,v 1.2 2010/03/21 21:34:01 jmc Exp $ |
4 |
# $Name: $ |
5 |
# |
6 |
# Build options for PGI compiler on Linux AMD64 platform |
7 |
# |
8 |
# tested with PGI version 10.9 on baudelaire (Linux 2.6.34.7-61.fc13.x86_64), using: |
9 |
#------- |
10 |
# - sh,bash: |
11 |
# > export PGI=/srv/software/pgi/pgi-10.9 |
12 |
# > export PATH=$PGI/linux86-64/10.9/bin:$PATH |
13 |
# > export MANPATH=$MANPATH:$PGI/linux86-64/10.9/man |
14 |
# > export LM_LICENSE_FILE=$PGI/license.dat |
15 |
# - csh,tcsh: |
16 |
# > setenv PGI /srv/software/pgi/pgi-10.9 |
17 |
# > set path=($PGI/linux86-64/10.9/bin $path) |
18 |
# > setenv MANPATH "$MANPATH":$PGI/linux86-64/10.9/man |
19 |
# > setenv LM_LICENSE_FILE $PGI/license.dat |
20 |
#------- |
21 |
|
22 |
FC=pgf77 |
23 |
CC=pgcc |
24 |
|
25 |
DEFINES='-DWORDLENGTH=4 -DNML_EXTENDED_F77' |
26 |
CPP='cpp -traditional -P' |
27 |
EXTENDED_SRC_FLAG='-Mextend' |
28 |
GET_FC_VERSION="-V" |
29 |
|
30 |
NOOPTFLAGS='-O0' |
31 |
|
32 |
if test "x$IEEE" = x ; then |
33 |
# No need for IEEE-754 |
34 |
FFLAGS="$FFLAGS -byteswapio -Ktrap=fp" |
35 |
FOPTIM='-tp k8-64 -pc=64 -O2 -Mvect=sse' |
36 |
#FOPTIM="$FOPTIM -fastsse -O3 -Msmart -Mvect=cachesize:1048576,transform" |
37 |
else |
38 |
# Try to follow IEEE-754 |
39 |
FFLAGS="$FFLAGS -byteswapio -Ktrap=fp -Mdclchk" |
40 |
FOPTIM='-pc=64 -O0 -Kieee' |
41 |
fi |
42 |
#- might want to use '-r8' for fizhi pkg: |
43 |
#FFLAGS="$FFLAGS -r8" |