/[MITgcm]/MITgcm/tools/build_options/SUPER-UX_SX-8_sxf90_awi
ViewVC logotype

Annotation of /MITgcm/tools/build_options/SUPER-UX_SX-8_sxf90_awi

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (hide annotations) (download)
Thu Feb 7 15:58:09 2013 UTC (11 years, 2 months ago) by mlosch
Branch: MAIN
CVS Tags: checkpoint64e, checkpoint64d
Changes since 1.5: +2 -2 lines
fix a small problem in the flag supporting expansion of functions and
subroutines: change .F to .f in the arguments of expin

1 mlosch 1.1 #!/bin/bash
2     #
3 mlosch 1.6 # $Header: /u/gcmpack/MITgcm/tools/build_options/SUPER-UX_SX-8_sxf90_awi,v 1.5 2011/09/13 19:39:02 jmc Exp $
4 jmc 1.4 # $Name: $
5    
6 mlosch 1.1 # for cross compiling on sx8.awi.de
7 jmc 1.4 # uname -a:
8 mlosch 1.1 # 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 jmc 1.5 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 mlosch 1.1 # nec use
23 jmc 1.5 DEFINES='-DTARGET_NEC_SX -DWORDLENGTH=1 -DHAVE_CLOC -UHAVE_SIGREG -DSEAICE_VECTORIZE_LSR -DCG2D_OUTERLOOPITERS=10 -DCG3D_OUTERLOOPITERS=10'
24 mlosch 1.1 CPP='/lib/cpp -traditional -P'
25 jmc 1.5 RMFILES='*.L'
26 mlosch 1.1
27     FFLAGS='-Pstack -sx8r'
28 jmc 1.4 # automatic inlining for routines < 50 lines (default) and in the same file
29 mlosch 1.1 # where they are to be inlined (we do not have too many of those)
30     FFLAGS=$FFLAGS' -pi'
31 jmc 1.5
32 jmc 1.4 # 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
34     # used, therefore there are only a few examples here); unfortunately, these
35     # flags break the genmake2 tests, so they get an extra flag variable that
36 mlosch 1.2 # is not tested in genmake2
37 mlosch 1.6 FEXTRAFLAGS='-pi auto fullmsg exp=barrier,ucase,timestep_tracer,ilnblnk,ifnblnk,cycle_tracer,pressure_for_eos,sw_temp,sw_ptmp rexp=fool_the_compiler,fool_the_compiler_r8,bar2,sw_adtg expin=barrier.f,timestep_tracer.f,fool_the_compiler.f,bar2.f,utils.f,cycle_tracer.f,pressure_for_eos.f,seawater.f'
38 jmc 1.4 # additional candidates for inlining are parts of packages that are not
39 mlosch 1.1 # always used, therefore use this at your own risk:
40     #FEXTRAFLAGS=${FEXTRAFLAGS}' -pi fullmsg exp= expin='
41 jmc 1.5
42     #-- additional options:
43 jmc 1.4 # include a formated code listing and a listing of compiler transformations
44 mlosch 1.1 # in *.L files
45     #FFLAGS=$FFLAGS' -R2'
46     # assume a loop count of 5,000,000 instead of estimating it from field
47 jmc 1.4 # declarations and include details messages about vectorization (if -R2
48 mlosch 1.1 # specified)
49     #FFLAGS=$FFLAGS' -Wf "-pvctl noassume loopcnt=5000000 fullmsg"'
50     # trace output for performance analysis
51     #FFLAGS=$FFLAGS' -ftrace'
52     # default automatic optimization level
53 jmc 1.4 #FOPTIM='-C vopt'
54 jmc 1.5
55 mlosch 1.1 if test "x$IEEE" = x ; then
56     # highest automatic optimization level, handle with care
57     FOPTIM='-C hopt'
58     # these files require lower optimization
59     NOOPTFILES='ini_forcing.F mom_calc_visc.F'
60     NOOPTFLAGS='-C vopt'
61     else
62     FOPTIM='-C vsafe'
63     fi
64    
65     # awi specific paths and stuff
66     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'
68    
69 jmc 1.5 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    

  ViewVC Help
Powered by ViewVC 1.1.22