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

Diff 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 | View Patch Patch

revision 1.8 by mlosch, Wed Feb 6 10:56:29 2008 UTC revision 1.15 by jmc, Sun Mar 21 22:22:53 2010 UTC
# Line 1  Line 1 
1  #!/bin/bash  #!/bin/bash
2  #  #
3  #  $Header$  # $Header$
4  #  # $Name$
5    
6  # for cross compiling on sx8.awi.de  # for cross compiling on sx8.awi.de
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  # nec use  # nec use
11  CPP='/lib/cpp -traditional -P'  CPP='/lib/cpp -traditional -P'
12  DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DTARGET_NEC_SX -DWORDLENGTH=1 -UHAVE_SIGREG -DSEAICE_VECTORIZE_LSR -DCG2D_OUTERLOOPITERS=10'  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  FC='sxmpif90'  FC='sxmpif90'
14  CC='sxcc -sx8r'  CC='sxcc -sx8r'
15    
# Line 17  FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) Line 18  FC_NAMEMANGLE="#define FC_NAMEMANGLE(X)
18  LINK='sxmpif90'  LINK='sxmpif90'
19  #LINK='sxmpif90 -p' # with profiler  #LINK='sxmpif90 -p' # with profiler
20  FFLAGS='-Pstack -sx8r'  FFLAGS='-Pstack -sx8r'
21  # automatic inlining for routines < 50 lines (default) and in the same file  # automatic inlining for routines < 50 lines (default) and in the same file
22  # 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)
23  FFLAGS=$FFLAGS' -pi'  FFLAGS=$FFLAGS' -pi'
24  # 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
25  # 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
26  # used, therefore there are only a few examples here); unfortunately, these  # used, therefore there are only a few examples here); unfortunately, these
27  # flags break the genmake2 tests, so you will have to include them into the  # flags break the genmake2 tests, so they get an extra flag variable that
28  # makefile by hand  # is not tested in genmake2
29  FEXTRAFLAGS='-pi auto fullmsg exp=barrier,ucase,timestep_tracer,ilnblnk,ifnblnk,cycle_tracer,pressure_for_eos rexp=fool_the_compiler,bar2 expin=barrier.F,timestep_tracer.F,fool_the_compiler.F,bar2.F,utils.F,cycle_tracer.F,pressure_for_eos.F'  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  # additional candidates for inlining are parts of packages that are not  # additional candidates for inlining are parts of packages that are not
31  # always used, therefore use this at your own risk:  # always used, therefore use this at your own risk:
32  #FEXTRAFLAGS=${FEXTRAFLAGS}' -pi fullmsg exp= expin='  #FEXTRAFLAGS=${FEXTRAFLAGS}' -pi fullmsg exp= expin='
33  # additional options:  # additional options:
34  # include a formated code listing and a listing of compiler transformations  # include a formated code listing and a listing of compiler transformations
35  # in *.L files  # in *.L files
36  #FFLAGS=$FFLAGS' -R2'  #FFLAGS=$FFLAGS' -R2'
37  # 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
38  # declarations and include details messages about vectorization (if -R2  # declarations and include details messages about vectorization (if -R2
39  # specified)  # specified)
40  #FFLAGS=$FFLAGS' -Wf "-pvctl noassume loopcnt=5000000 fullmsg"'  #FFLAGS=$FFLAGS' -Wf "-pvctl noassume loopcnt=5000000 fullmsg"'
 # define basic storage unit as 8 bytes (default is 4); does not work with  
 # netCDF (library needs recompilation, accordingly)  
 #FFLAGS=$FFLAGS' -ew'    
41  # trace output for performance analysis  # trace output for performance analysis
42  #FFLAGS=$FFLAGS' -ftrace'  #FFLAGS=$FFLAGS' -ftrace'
43  # default automatic optimization level  # default automatic optimization level
44  #FOPTIM='-C vopt'  #FOPTIM='-C vopt'
45  if test "x$IEEE" = x ; then  if test "x$IEEE" = x ; then
46   # highest automatic optimization level, handle with care   # highest automatic optimization level, handle with care
47   FOPTIM='-C hopt'   FOPTIM='-C hopt'
# Line 58  else Line 56  else
56  fi  fi
57    
58  # awi specific paths and stuff  # awi specific paths and stuff
59  INCLUDES='-I/SX/usr/include -I/home/sx8/sx8bench/netcdf/include'  #INCLUDES='-I/SX/usr/include -I/home/sx8/sx8bench/netcdf/include'
60  LIBS='-L/home/sx8/sx8bench/netcdf/lib -lnetcdf'  #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  # this is needed for compiling on the compute nodes  # this is needed for compiling on the compute nodes
64  INCLUDES=$INCLUDES' -I/SX/opt/mpisx/inst/usr/include'  INCLUDES=$INCLUDES' -I/SX/opt/mpisx/inst/usr/include'
65    

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.22