3 |
# $Header$ |
# $Header$ |
4 |
# $Name$ |
# $Name$ |
5 |
# |
# |
6 |
# Build options for Suse SLES-8.1 Opteron |
# Build options for PGI compiler on Linux AMD64 platform |
|
# tested on (Linux ln0127en 2.4.21-143-numa #1 SMP Fri Oct 31 00:17:52 UTC 2003 x86_64 unknown) system 20041512 |
|
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 |
FC=pgf77 |
23 |
|
CC=pgcc |
24 |
|
|
25 |
DEFINES='-DWORDLENGTH=4' |
DEFINES='-DWORDLENGTH=4 -DNML_EXTENDED_F77' |
26 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
27 |
EXTENDED_SRC_FLAG='-Mextend' |
EXTENDED_SRC_FLAG='-Mextend' |
28 |
|
GET_FC_VERSION="-V" |
|
MAKEDEPEND=/usr/X11R6/bin/makedepend |
|
29 |
|
|
30 |
NOOPTFLAGS='-O0' |
NOOPTFLAGS='-O0' |
31 |
|
|
32 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
33 |
# No need for IEEE-754 |
# No need for IEEE-754 |
34 |
FFLAGS="$FFLAGS -byteswapio -Mnodclchk -Ktrap=fp" |
FFLAGS="$FFLAGS -byteswapio -Ktrap=fp" |
35 |
FOPTIM='-tp k8-64 -pc=64 -O2 -scalarsse -Mvect=sse' #-fastsse -O3 -Msmart -Mvect=cachesize:1048576,transform' |
FOPTIM='-tp k8-64 -pc=64 -O2 -Mvect=sse' |
36 |
|
#FOPTIM="$FOPTIM -fastsse -O3 -Msmart -Mvect=cachesize:1048576,transform" |
37 |
else |
else |
38 |
# Try to follow IEEE-754 |
# Try to follow IEEE-754 |
39 |
FFLAGS="$FFLAGS -byteswapio -Ktrap=fp" |
FFLAGS="$FFLAGS -byteswapio -Ktrap=fp -Mdclchk" |
40 |
FOPTIM='-tp k8-64 -pc=64 -O2 -scalarsse -Mvect=sse -Kieee' #-fastsse -O3 -Msmart -Kieee -Mvect=cachesize:1048576,transform' |
FOPTIM='-pc=64 -O0 -Kieee' |
41 |
fi |
fi |
42 |
#- might want to use '-r8' for fizhi pkg: |
#- might want to use '-r8' for fizhi pkg: |
43 |
#FFLAGS="$FFLAGS -r8" |
#FFLAGS="$FFLAGS -r8" |