17 |
LINK='sxmpif90' |
LINK='sxmpif90' |
18 |
#LINK='sxmpif90 -p' # with profiler |
#LINK='sxmpif90 -p' # with profiler |
19 |
FFLAGS='-Pstack -sx8r' |
FFLAGS='-Pstack -sx8r' |
20 |
|
# automatic inlining for routines < 50 lines (default) and in the same file |
21 |
|
# where they are to be inlined (we do not have too many of those) |
22 |
|
FFLAGS=$FFLAGS' -pi' |
23 |
|
# This is how you inline external routines if they are longer than 50 lines |
24 |
|
# and live in a separate file (the actual routines depend on the packages |
25 |
|
# used, therefore there are only a few examples here); unfortunately, these |
26 |
|
# flags break the genmake2 tests, so you will have to include them into the |
27 |
|
# makefile by hand |
28 |
|
FEXTRAFLAGS='-pi fullmsg exp=timestep_tracer,ilnblnk,ifnblnk,cycle_tracer,pressure_for_eos rexp=bar2 expin=timestep_tracer.F,bar2.F,utils.F,cycle_tracer.F,pressure_for_eos.F' |
29 |
|
# additional candidates for inlining are parts of packages that are not |
30 |
|
# always used, therefore use this at your own risk: |
31 |
|
#FEXTRAFLAGS=${FEXTRAFLAGS}' -pi fullmsg exp= expin=' |
32 |
# additional options: |
# additional options: |
33 |
# include a formated code and a listing of compiler transformations |
# include a formated code listing and a listing of compiler transformations |
34 |
# in *.L files |
# in *.L files |
35 |
#FFLAGS=$FFLAGS' -R2' |
#FFLAGS=$FFLAGS' -R2' |
36 |
# assume a loop count of 5,000,000 instead of estimating it from field |
# assume a loop count of 5,000,000 instead of estimating it from field |
37 |
# declarations and include details messages about vectorization (if -R2 |
# declarations and include details messages about vectorization (if -R2 |
38 |
# specified) |
# specified) |
39 |
#FFLAGS=$FFLAGS' -Wf "-pvctl noassume loopcnt=5000000 fullmsg"' |
#FFLAGS=$FFLAGS' -Wf "-pvctl noassume loopcnt=5000000 fullmsg"' |
|
# This is how you inline routines (the actual routines depend on the packages |
|
|
# used, therefore there are only a few examples here; |
|
|
# edit this list in the Makefile, because including it here will break the |
|
|
# various tests in genmake2, maybe I will find a better way to do this |
|
|
# later) |
|
|
#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' |
|
40 |
# define basic storage unit as 8 bytes (default is 4); does not work with |
# define basic storage unit as 8 bytes (default is 4); does not work with |
41 |
# netCDF (library needs recompilation, accordingly) |
# netCDF (library needs recompilation, accordingly) |
42 |
#FFLAGS=$FFLAGS' -ew' |
#FFLAGS=$FFLAGS' -ew' |