7 |
# uname -a: |
# uname -a: |
8 |
# Linux sx8 2.6.5-7.282-default #1 SMP Tue Aug 29 10:40:40 UTC 2006 ia64 ia64 ia64 GNU/Linux# |
# Linux sx8 2.6.5-7.282-default #1 SMP Tue Aug 29 10:40:40 UTC 2006 ia64 ia64 ia64 GNU/Linux# |
9 |
|
|
10 |
|
if test "x$MPI" = xtrue ; then |
11 |
|
CC='sxcc -sx8r' |
12 |
|
FC='sxmpif90' |
13 |
|
LINK='sxmpif90' |
14 |
|
#LINK='sxmpif90 -p' # with profiler |
15 |
|
else |
16 |
|
CC='sxcc -sx8r' |
17 |
|
FC='sxf90' |
18 |
|
LINK='sxf90' |
19 |
|
fi |
20 |
|
|
21 |
|
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" |
22 |
# nec use |
# nec use |
|
CPP='/lib/cpp -traditional -P' |
|
23 |
DEFINES='-DTARGET_NEC_SX -DWORDLENGTH=1 -DHAVE_CLOC -UHAVE_SIGREG -DSEAICE_VECTORIZE_LSR -DCG2D_OUTERLOOPITERS=10 -DCG3D_OUTERLOOPITERS=10' |
DEFINES='-DTARGET_NEC_SX -DWORDLENGTH=1 -DHAVE_CLOC -UHAVE_SIGREG -DSEAICE_VECTORIZE_LSR -DCG2D_OUTERLOOPITERS=10 -DCG3D_OUTERLOOPITERS=10' |
24 |
FC='sxf90' |
CPP='/lib/cpp -traditional -P' |
|
CC='sxcc -sx8r' |
|
|
|
|
25 |
RMFILES='*.L' |
RMFILES='*.L' |
26 |
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" |
|
|
LINK='sxf90' |
|
|
#LINK='sxmpif90 -p' # with profiler |
|
27 |
FFLAGS='-Pstack -sx8r' |
FFLAGS='-Pstack -sx8r' |
28 |
# automatic inlining for routines < 50 lines (default) and in the same file |
# automatic inlining for routines < 50 lines (default) and in the same file |
29 |
# where they are to be inlined (we do not have too many of those) |
# where they are to be inlined (we do not have too many of those) |
30 |
FFLAGS=$FFLAGS' -pi' |
FFLAGS=$FFLAGS' -pi' |
31 |
|
|
32 |
# This is how you inline external routines if they are longer than 50 lines |
# This is how you inline external routines if they are longer than 50 lines |
33 |
# and live in a separate file (the actual routines depend on the packages |
# and live in a separate file (the actual routines depend on the packages |
34 |
# used, therefore there are only a few examples here); unfortunately, these |
# used, therefore there are only a few examples here); unfortunately, these |
38 |
# additional candidates for inlining are parts of packages that are not |
# additional candidates for inlining are parts of packages that are not |
39 |
# always used, therefore use this at your own risk: |
# always used, therefore use this at your own risk: |
40 |
#FEXTRAFLAGS=${FEXTRAFLAGS}' -pi fullmsg exp= expin=' |
#FEXTRAFLAGS=${FEXTRAFLAGS}' -pi fullmsg exp= expin=' |
41 |
# additional options: |
|
42 |
|
#-- additional options: |
43 |
# include a formated code listing and a listing of compiler transformations |
# include a formated code listing and a listing of compiler transformations |
44 |
# in *.L files |
# in *.L files |
45 |
#FFLAGS=$FFLAGS' -R2' |
#FFLAGS=$FFLAGS' -R2' |
51 |
#FFLAGS=$FFLAGS' -ftrace' |
#FFLAGS=$FFLAGS' -ftrace' |
52 |
# default automatic optimization level |
# default automatic optimization level |
53 |
#FOPTIM='-C vopt' |
#FOPTIM='-C vopt' |
54 |
|
|
55 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
56 |
# highest automatic optimization level, handle with care |
# highest automatic optimization level, handle with care |
57 |
FOPTIM='-C hopt' |
FOPTIM='-C hopt' |
|
|
|
58 |
# these files require lower optimization |
# these files require lower optimization |
59 |
NOOPTFILES='ini_forcing.F mom_calc_visc.F' |
NOOPTFILES='ini_forcing.F mom_calc_visc.F' |
60 |
NOOPTFLAGS='-C vopt' |
NOOPTFLAGS='-C vopt' |
61 |
else |
else |
|
# Try to follow IEEE-754 |
|
|
# highest automatic optimization level, handle with care |
|
62 |
FOPTIM='-C vsafe' |
FOPTIM='-C vsafe' |
63 |
fi |
fi |
64 |
|
|
66 |
INCLUDES='-I/SX/usr/include -I/sx8/user2/awisoft/sx8/netcdf-4.0/dw/include' |
INCLUDES='-I/SX/usr/include -I/sx8/user2/awisoft/sx8/netcdf-4.0/dw/include' |
67 |
LIBS='-L/sx8/user2/awisoft/sx8/netcdf-4.0/dw/lib -lnetcdf' |
LIBS='-L/sx8/user2/awisoft/sx8/netcdf-4.0/dw/lib -lnetcdf' |
68 |
|
|
69 |
|
if test "x$MPI" = xtrue ; then |
70 |
|
# this is needed for compiling on the compute nodes |
71 |
|
INCLUDES=$INCLUDES' -I/SX/opt/mpisx/inst/usr/include' |
72 |
|
fi |
73 |
|
|