2 |
# |
# |
3 |
# $Header$ |
# $Header$ |
4 |
# |
# |
5 |
# for use on sx8.awi.de |
# for cross compiling on sx8.awi.de |
6 |
# uname -a |
# uname -a: |
7 |
# 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# |
8 |
|
|
9 |
# nec use |
# nec use |
10 |
CPP='/lib/cpp -traditional -P' |
CPP='/lib/cpp -traditional -P' |
11 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DTARGET_NEC_SX -DWORDLENGTH=1 -UHAVE_SIGREG' |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DTARGET_NEC_SX -DWORDLENGTH=1 -UHAVE_SIGREG' |
12 |
FC='sxmpif90 -c' |
FC='sxmpif90' |
13 |
CC='sxcc -sx6' |
CC='sxcc -sx8r' |
14 |
|
|
15 |
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" |
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _" |
16 |
LINK='sxmpif90' |
LINK='sxmpif90' |
17 |
#LINK='sxmpif90 -p' # profiler |
#LINK='sxmpif90 -p' # with profiler |
18 |
# output to *.L files |
# output to *.L files |
19 |
FFLAGS='-Wf "-pvctl noassume loopcnt=5000000 fullmsg" -R2 -Pstack' |
FFLAGS='-Wf "-pvctl noassume loopcnt=5000000 fullmsg" -R2 -Pstack -sx8r' |
20 |
# additional options |
# additional options |
21 |
# -C hopt # aggressive optimization (highest automatic optimization level) |
# This is how you inline routines (the actual routines depend on the packages |
22 |
# -ew # define basic storage unit as 8 bytes (default is 4); |
# used, therefore there are only a few examples here; |
23 |
# # does not work with netCDF error (need recompilation) |
# edit this list in the Makefile, because including it here will break the |
24 |
# -ftrace # trace output for performance analysis |
# various tests in genmake2, maybe I will find a better way to do this |
25 |
|
# later) |
26 |
|
#FFLAGS=$FFLAGS' -pi fullmsg exp=timestep_tracer,ilnblnk,ifnblnk,cycle_tracer,pressure_for_eos rexp=bar2,fool_the_compiler expin=timestep_tracer.F,fool_the_compiler.F,bar2.F,utils.F,cycle_tracer.F,pressure_for_eos.F' |
27 |
|
# define basic storage unit as 8 bytes (default is 4); does not work with |
28 |
|
# netCDF (library needs recompilation, accordingly) |
29 |
|
#FFLAGS=$FFLAGS' -ew' |
30 |
|
|
31 |
|
#FFLAGS=$FFLAGS' -ftrace' # trace output for performance analysis |
32 |
|
# highest automatic optimization level, handle with care |
33 |
|
#FOPTIM='-C hopt' |
34 |
|
|
35 |
# awi specific |
# awi specific paths and stuff |
36 |
INCLUDES='-I/SX/usr/include -I/home/sx8/sx8bench/netcdf/include' |
INCLUDES='-I/SX/usr/include -I/home/sx8/sx8bench/netcdf/include' |
37 |
LIBS='-L/home/sx8/sx8bench/netcdf/lib -lnetcdf' |
LIBS='-L/home/sx8/sx8bench/netcdf/lib -lnetcdf' |