1 |
ce107 |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
|
|
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_pgf77,v 1.1 2004/01/03 05:31:36 edhill Exp $ |
4 |
|
|
# $Name: $ |
5 |
|
|
# |
6 |
|
|
# Build options for Fedore Core 3 x86-64 Opteron with the Fedore LAM version |
7 |
|
|
# tested on (Linux batsi 2.6.10-1.766_FC3smp #1 SMP Wed Feb 9 23:17:48 EST 2005 x86_64 x86_64 x86_64 GNU/Linux) system 20051802 |
8 |
|
|
# |
9 |
|
|
|
10 |
|
|
CC=pathcc |
11 |
|
|
FC=pathf90 |
12 |
|
|
# We need to link statically to avoid the annoying _rtld_global_ro@GLIBC_PRIVATE |
13 |
|
|
# error message during linking |
14 |
|
|
LINK='pathf90 -static' |
15 |
|
|
# We need to add the LAM (gcc/g++/g77 compiled) libraries |
16 |
|
|
LIBS='-L/usr/lib64 -llammpio -llamf77mpi -lmpi -llam -lutil -lpthread -lm' |
17 |
|
|
# We need to add -DTARGET_LAM as older versions of LAM did not know |
18 |
|
|
# about MPI_REAL8 etc. |
19 |
|
|
DEFINES='-DTARGET_LAM -D_BYTESWAPIO -DWORDLENGTH=4 -DALLOW_USE_MPI -DALWAYS_USE_MPI' |
20 |
|
|
CPP='cpp -traditional -P' |
21 |
|
|
NOOPTFLAGS='-O0' |
22 |
|
|
MAKEDEPEND=/usr/X11R6/bin/makedepend |
23 |
|
|
INCLUDES=-I/usr/include |
24 |
|
|
FFLAGS='-r8 -extend_source' |
25 |
|
|
if test "x$IEEE" = x ; then |
26 |
|
|
# No need for IEEE-754 |
27 |
|
|
FOPTIM='-Ofast -LNO:fusion=2' |
28 |
|
|
else |
29 |
|
|
# Try to follow IEEE-754 |
30 |
|
|
FOPTIM='-Ofast -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1' |
31 |
|
|
fi |
32 |
|
|
|