/[MITgcm]/MITgcm/tools/build_options/SUPER-UX_SX-8_sxf90+mpi_awi
ViewVC logotype

Annotation of /MITgcm/tools/build_options/SUPER-UX_SX-8_sxf90+mpi_awi

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


Revision 1.16 - (hide annotations) (download)
Thu Sep 29 16:27:29 2011 UTC (12 years, 7 months ago) by jmc
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +1 -1 lines
FILE REMOVED
move to unsupported/ (has been merged into SUPER-UX_SX-8_sxf90_awi)

1 mlosch 1.1 #!/bin/bash
2     #
3 jmc 1.16 # $Header: /u/gcmpack/MITgcm/tools/build_options/SUPER-UX_SX-8_sxf90+mpi_awi,v 1.15 2010/03/21 22:22:53 jmc Exp $
4 jmc 1.15 # $Name: $
5    
6 mlosch 1.2 # for cross compiling on sx8.awi.de
7 jmc 1.15 # 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     # nec use
11     CPP='/lib/cpp -traditional -P'
12 mlosch 1.14 DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DTARGET_NEC_SX -DWORDLENGTH=1 -DHAVE_CLOC -UHAVE_SIGREG -DSEAICE_VECTORIZE_LSR -DCG2D_OUTERLOOPITERS=10 -DCG3D_OUTERLOOPITERS=10'
13 mlosch 1.2 FC='sxmpif90'
14     CC='sxcc -sx8r'
15    
16 mlosch 1.3 RMFILES='*.L'
17 mlosch 1.1 FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X ## _"
18     LINK='sxmpif90'
19 mlosch 1.2 #LINK='sxmpif90 -p' # with profiler
20 mlosch 1.4 FFLAGS='-Pstack -sx8r'
21 jmc 1.15 # automatic inlining for routines < 50 lines (default) and in the same file
22 mlosch 1.6 # where they are to be inlined (we do not have too many of those)
23     FFLAGS=$FFLAGS' -pi'
24 jmc 1.15 # This is how you inline external routines if they are longer than 50 lines
25     # and live in a separate file (the actual routines depend on the packages
26     # used, therefore there are only a few examples here); unfortunately, these
27     # flags break the genmake2 tests, so they get an extra flag variable that
28 mlosch 1.13 # is not tested in genmake2
29     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'
30 jmc 1.15 # additional candidates for inlining are parts of packages that are not
31 mlosch 1.6 # always used, therefore use this at your own risk:
32     #FEXTRAFLAGS=${FEXTRAFLAGS}' -pi fullmsg exp= expin='
33 mlosch 1.4 # additional options:
34 jmc 1.15 # include a formated code listing and a listing of compiler transformations
35 mlosch 1.4 # in *.L files
36     #FFLAGS=$FFLAGS' -R2'
37     # assume a loop count of 5,000,000 instead of estimating it from field
38 jmc 1.15 # declarations and include details messages about vectorization (if -R2
39 mlosch 1.4 # specified)
40     #FFLAGS=$FFLAGS' -Wf "-pvctl noassume loopcnt=5000000 fullmsg"'
41     # trace output for performance analysis
42     #FFLAGS=$FFLAGS' -ftrace'
43     # default automatic optimization level
44 jmc 1.15 #FOPTIM='-C vopt'
45 mlosch 1.7 if test "x$IEEE" = x ; then
46     # highest automatic optimization level, handle with care
47     FOPTIM='-C hopt'
48 mlosch 1.2
49 mlosch 1.7 # these files require lower optimization
50     NOOPTFILES='ini_forcing.F mom_calc_visc.F'
51     NOOPTFLAGS='-C vopt'
52     else
53     # Try to follow IEEE-754
54     # highest automatic optimization level, handle with care
55     FOPTIM='-C vsafe'
56     fi
57 mlosch 1.1
58 mlosch 1.2 # awi specific paths and stuff
59 mlosch 1.12 #INCLUDES='-I/SX/usr/include -I/home/sx8/sx8bench/netcdf/include'
60     #LIBS='-L/home/sx8/sx8bench/netcdf/lib -lnetcdf'
61     INCLUDES='-I/SX/usr/include -I/sx8/user2/awisoft/sx8/netcdf-4.0/dw/include'
62     LIBS='-L/sx8/user2/awisoft/sx8/netcdf-4.0/dw/lib -lnetcdf'
63 mlosch 1.8 # this is needed for compiling on the compute nodes
64     INCLUDES=$INCLUDES' -I/SX/opt/mpisx/inst/usr/include'
65    

  ViewVC Help
Powered by ViewVC 1.1.22