1 |
#!/bin/bash |
#!/bin/bash |
2 |
# |
# |
3 |
# $Header$ |
# $Header$ |
4 |
# |
# $Name$ |
|
|
|
5 |
|
|
6 |
FC='/opt/mpich/bin/mpif77' |
FC='/opt/mpich/bin/mpif77' |
7 |
CC='gcc' |
CC='/opt/mpich/bin/mpicc' |
8 |
LINK='/opt/mpich/bin/mpif77' |
LINK='/opt/mpich/bin/mpif77' |
9 |
DEFINES='-DWORDLENGTH=4' |
|
10 |
|
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4' |
11 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
12 |
|
EXTENDED_SRC_FLAG='-Mextend' |
13 |
|
|
14 |
|
INCLUDES='-I/opt/mpich/include' |
15 |
|
LIBS='-L/opt/mpich/lib/ -lfmpich -lmpich' |
16 |
|
|
17 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
18 |
# No need for IEEE-754 |
# No need for IEEE-754 |
19 |
FFLAGS='-byteswapio -r8 -Mnodclchk -Mextend' |
FFLAGS="$FFLAGS -byteswapio -Mnodclchk" |
20 |
FOPTIM='-tp p6 -v -O2 -Munroll -Mvect=cachesize:512000,transform' |
FOPTIM='-fastsse -Mvect=cachesize:524288,transform' |
21 |
else |
else |
22 |
# Try to follow IEEE-754 |
# Try to follow IEEE-754 |
23 |
FFLAGS='-byteswapio -r8 -Mnodclchk -Mextend' |
FFLAGS="$FFLAGS -byteswapio" |
24 |
FOPTIM='-tp p6 -v -O2 -Munroll -Mvect=cachesize:512000,transform -Kieee' |
FOPTIM='-O0 -Mvect=sse -Mscalarsse -Mcache_align -Mnoflushz -Kieee' |
25 |
fi |
fi |
26 |
|
#- might want to use '-r8' for fizhi pkg: |
27 |
INCLUDES='-I/opt/mpich/include' |
#FFLAGS="$FFLAGS -r8" |
|
LIBS='-L/opt/mpich/lib/ -lfmpich -lmpich' |
|