1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_amd64_pgf77+mpi_ncar,v 1.1 2005/01/12 22:04:59 ce107 Exp $ |
4 |
# $Name: $ |
5 |
# |
6 |
# Build options for Suse SLES-8.1 Opteron |
7 |
# tested on (Linux ln0127en 2.4.21-143-numa #1 SMP Fri Oct 31 00:17:52 UTC 2003 x86_64 unknown) system 20041512 |
8 |
# |
9 |
|
10 |
FC=mpif77 |
11 |
CC=mpicc |
12 |
LINK=mpif77 |
13 |
|
14 |
DEFINES='-DWORDLENGTH=4 -DALLOW_USE_MPI -DALWAYS_USE_MPI' |
15 |
CPP='cpp -traditional -P' |
16 |
EXTENDED_SRC_FLAG='-Mextend' |
17 |
|
18 |
MAKEDEPEND=/usr/X11R6/bin/makedepend |
19 |
INCLUDES=-I/opt/mpich-gm/include |
20 |
|
21 |
NOOPTFLAGS='-O0' |
22 |
|
23 |
if test "x$IEEE" = x ; then |
24 |
# No need for IEEE-754 |
25 |
FFLAGS="$FFLAGS -byteswapio -Mnodclchk -Ktrap=fp" |
26 |
FOPTIM='-tp k8-64 -pc=64 -fastsse -O3 -Msmart -Mvect=cachesize:1048576,transform' |
27 |
else |
28 |
# Try to follow IEEE-754 |
29 |
FFLAGS="$FFLAGS -byteswapio -Ktrap=fp" |
30 |
FOPTIM='-tp k8-64 -pc=64 -fastsse -O3 -Msmart -Kieee -Mvect=cachesize:1048576,transform' |
31 |
fi |
32 |
#- might want to use '-r8' for fizhi pkg: |
33 |
#FFLAGS="$FFLAGS -r8" |