machine-ecmwf-cca-gfortran.rc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. !===============================================
  2. ! compiler information (GNU compiler [gfortran])
  3. !===============================================
  4. ! Gfortran compiler: do not include a compiler.rc, since CRAY uses ftn
  5. ! wrapper. Just set flags here. Flags dedicated to hardware are normally
  6. ! already included in the ftn wrapper.
  7. compiler.fc : ftn
  8. compiler.f77 : ${compiler.fc}
  9. compiler.fc.openmp : ${compiler.fc}
  10. mpi.compiler.fc : ${compiler.fc}
  11. mpi.compiler.fc.openmp : ${compiler.fc}
  12. ! GNU Fortran (GCC) 4.8.2 20131016 (Cray Inc.)
  13. compiler.getversion_flag : --version
  14. compiler.flags.default.fflags : -ffree-line-length-none -cpp -fimplicit-none
  15. compiler.flags.default.ldflags :
  16. compiler.flags.real8.fflags : -fdefault-real-8
  17. compiler.flags.real8.ldflags :
  18. compiler.flags.mpi.fflags :
  19. compiler.flags.mpi.ldflags :
  20. compiler.flags.openmp.fflags : -fopenmp
  21. compiler.flags.openmp.ldflags : -fopenmp
  22. compiler.flags.optim-none.fflags : -O0
  23. compiler.flags.optim-none.ldflags :
  24. ! for bit reproducibility (-fno-fast-math instead?)
  25. compiler.flags.optim-strict.fflags : -O2 -mavx -ftree-vectorize -ffast-math -funroll-loops
  26. compiler.flags.optim-strict.ldflags :
  27. ! -O3 = O2 plus -finline-functions, -funswitch-loops, -fpredictive-commoning, -fgcse-after-reload, -ftree-loop-vectorize, -ftree-loop-distribute-patterns, -ftree-slp-vectorize, -fvect-cost-model, -ftree-partial-pre and -fipa-cp-clone options.
  28. ! -Ofast = O3 plus -ffast-math -fno-protect-parens and -fstack-arrays
  29. compiler.flags.optim-fast.fflags : -Ofast -mavx -funroll-loops
  30. compiler.flags.optim-fast.ldflags : -Ofast
  31. compiler.flags.optim-vfast.fflags : -O5
  32. compiler.flags.optim-vfast.ldflags :
  33. compiler.flags.check-all.fflags : -Wall -fcheck=all -ffpe-trap=zero,invalid
  34. compiler.flags.check-all.ldflags :
  35. compiler.flags.debug.fflags : -fmax-errors=0 -g -fdump-core -fbacktrace -O0
  36. compiler.flags.debug.ldflags :
  37. !===============================================
  38. ! libraries
  39. !===============================================
  40. ! fnt is a wrapper, which already knows all libraries locations. Then we just need to specify the flags here.
  41. ! Z library (used for compression in HDF)
  42. compiler.lib.z.fflags :
  43. compiler.lib.z.libs : -lz
  44. ! JPEG library (used for compression in HDF)
  45. compiler.lib.jpeg.fflags :
  46. compiler.lib.jpeg.libs : -ljpeg
  47. ! SZ library (used for compression in HDF)
  48. SZIP_VERSION :
  49. SZIP_HOME :
  50. compiler.lib.sz.fflags :
  51. compiler.lib.sz.libs :
  52. ! HDF4 library:
  53. HDF_VERSION :
  54. HDF_HOME :
  55. compiler.lib.hdf4.fflags :
  56. compiler.lib.hdf4.libs :
  57. ! HDF5 library:
  58. HDF5_VERSION :
  59. HDF5_HOME :
  60. compiler.lib.hdf5.fflags :
  61. compiler.lib.hdf5.libs : -lhdf5_hl -lhdf5
  62. ! HDF5 library with parallel features enabled:
  63. HDF5_PAR_VERSION :
  64. HDF5_PAR_HOME :
  65. compiler.lib.hdf5_par.fflags :
  66. compiler.lib.hdf5_par.libs : -lhdf5_hl -lhdf5
  67. ! NetCDF library:
  68. NETCDF_VERSION :
  69. NETCDF_HOME :
  70. compiler.lib.netcdf.fflags :
  71. compiler.lib.netcdf.libs : -lnetcdff -lnetcdf
  72. ! NetCDF4 library:
  73. NETCDF4_VERSION :
  74. NETCDF4_HOME :
  75. compiler.lib.netcdf4.fflags :
  76. compiler.lib.netcdf4.libs : -lnetcdff -lnetcdf
  77. ! NetCDF4 library with parallel features enabled:
  78. NETCDF4_PAR_VERSION :
  79. NETCDF4_PAR_HOME :
  80. compiler.lib.netcdf4_par.fflags :
  81. compiler.lib.netcdf4_par.libs : -lnetcdff -lnetcdf
  82. ! UDUNITS v1.x library (not available)
  83. UDUNITS_HOME :
  84. compiler.lib.udunits1.fflags : -I${UDUNITS_HOME}/include
  85. compiler.lib.udunits1.libs : -L${UDUNITS_HOME}/lib -ludunits
  86. ! UDUNITS v2.x library (available through module, nothing to specify here)
  87. compiler.lib.udunits2.fflags :
  88. compiler.lib.udunits2.libs :
  89. ! OASIS3 library ( ${ECEARTH} is defined in your environment )
  90. ! Bother with this only if we are within EC-Earth
  91. #if "oasis3" in "${my.tm5.define}":
  92. OASIS3_ARCH : aix
  93. OASIS3_MPIV : MPI1
  94. OASIS3_HOME : ${ECEARTH}/oasis3/prism_2-5/prism/${OASIS3_ARCH}
  95. compiler.lib.oasis3.fflags : -I${OASIS3_HOME}/build/lib/psmile.${OASIS3_MPIV}
  96. compiler.lib.oasis3.libs : -L${OASIS3_HOME}/lib -lpsmile.${OASIS3_MPIV} -lmpp_io
  97. #endif
  98. ! MPI library
  99. compiler.lib.mpi.fflags :
  100. compiler.lib.mpi.libs :
  101. ! GRIBEX library
  102. compiler.lib.gribex.fflags :
  103. compiler.lib.gribex.libs :
  104. ! GRIB-API library
  105. compiler.lib.grib_api.fflags : ${GRIB_API_INCLUDE}
  106. compiler.lib.grib_api.libs : ${GRIB_API_LIB}
  107. ! LAPACK library:
  108. compiler.lib.lapack.fflags :
  109. compiler.lib.lapack.libs :
  110. !===============================================================
  111. ! SETTINGS FOR BATCH SCHEDULER (qsub,bsub,loadleveler,slurm,pbs)
  112. !===============================================================
  113. queue : pbs
  114. ! passed directly to qsub command
  115. queue.pbs.submit.options :
  116. ! keep default for now. May become an option if needed
  117. hyperthread : 2
  118. ! number of tasks (trap non-MPI cases)
  119. #if "${par.mpi}" in ["T","True"] :
  120. my.queue.ntask : ${par.ntask}
  121. #else
  122. my.queue.ntask : 1
  123. #endif
  124. ! number of threads (trap non-OpenMP cases)
  125. #if "${par.openmp}" in ["T","True"] :
  126. my.queue.nthread : ${par.nthread}
  127. #else
  128. my.queue.nthread : 1
  129. #endif
  130. !------------------------------------------------------------------
  131. ! PBS queue options: if set to <none>, it is skipped, to <auto> it is set in
  132. ! the python script. If empty it is used as 'option without
  133. ! argument'.
  134. !
  135. ! "l" option has special treatment: it is seen as a space-
  136. ! separated list of options itself, and is skipped if empty.
  137. !
  138. ! See bin/submit_tm5_tools.py/QueueOptions_PBS for details.
  139. !-----------------------------------------------
  140. ! ** queue options with same value for ALL steps
  141. !-----------------------------------------------
  142. ! space seperated list:
  143. queue.pbs.options.all : j m l
  144. ! shell (DO NOT USE IT! KEPT HERE TO REMEMBER)
  145. queue.pbs.option.all.S : /opt/pbs/default/bin/pbs_python
  146. ! join output/error log: oe (joined in out) | eo (joined in err) | n (not joined)
  147. queue.pbs.option.all.j : oe
  148. ! when to send emails : a (abort) | b (begin) | e (end) | n (never)
  149. queue.pbs.option.all.m : n
  150. ! pass environment (ECMWF doc says to be careful)
  151. queue.pbs.option.all.V :
  152. ! account (to overwrite default one attached to $USER)
  153. #if ("${my.queue.account}" == ""):
  154. queue.pbs.option.all.l :
  155. #else
  156. queue.pbs.option.all.l : EC_billing_account=${my.queue.account}
  157. #endif
  158. !------------------------------------------------
  159. ! ** queue options with different values per step
  160. !------------------------------------------------
  161. ! list options per step:
  162. queue.pbs.options.init : N q o l
  163. queue.pbs.options.run : N q o l
  164. queue.pbs.options.done : N q o
  165. ! ~~~~~ step init options
  166. queue.pbs.option.init.q : ns
  167. queue.pbs.option.init.N : ${job.name}_init
  168. queue.pbs.option.init.o : <auto>
  169. queue.pbs.option.init.l : EC_ecfs=1
  170. ! ~~~~~ step done options
  171. queue.pbs.option.done.q : ns
  172. queue.pbs.option.done.N : ${job.name}_done
  173. queue.pbs.option.done.o : <auto>
  174. queue.pbs.option.done.W : block=true
  175. ! ~~~~~ step run options
  176. queue.pbs.option.run.N : ${job.name}_run
  177. queue.pbs.option.run.o : <auto>
  178. ! check if run step's gonna be fractional (nf) or full (nq) node occupancy,
  179. ! which depends on: hyperthreading (1 or 2), ntasks and nthreads
  180. #if (${my.queue.ntask}*${my.queue.nthread} == 1 ) :
  181. queue.pbs.option.run.q : ns
  182. module.cmd:
  183. #elif (${my.queue.ntask}*${my.queue.nthread} > ${hyperthread}*12 ) :
  184. queue.pbs.option.run.q : np
  185. module.cmd:
  186. #else
  187. queue.pbs.option.run.q : nf
  188. ! NOTE: the module command, even with the qualified path, is not found in the
  189. ! python script. It is here just to put mpiexec on the $PATH - so we revert to
  190. ! using the fully qualified path for mpiexec hereafter.
  191. module.cmd:
  192. !module.cmd: /opt/modules/3.2.6.7/bin/modulecmd bash load cray-snplauncher
  193. #endif
  194. #if (${my.queue.nthread} > 1):
  195. queue.pbs.option.run.l : EC_total_tasks=${my.queue.ntask} EC_threads_per_task=${my.queue.nthread} EC_hyperthreads=${hyperthread}
  196. #else
  197. queue.pbs.option.run.l : EC_total_tasks=${my.queue.ntask} EC_hyperthreads=${hyperthread}
  198. #endif
  199. queue.pbs.option.run.W : block=true
  200. ! TODO if needed: Resources (thru -l EC_memory_per_task)
  201. !queue.pbs.option.run.resources : ${my.resource.memory}
  202. !===============================================
  203. ! make
  204. !===============================================
  205. ! the setup script will insert the 'build.jobs' specified in the expert.rc
  206. ! or passed as argument to the setup script:
  207. maker : gmake -j %{build.jobs}
  208. ! Submit compilation with a job script?
  209. ! - if F (default), pycasso calls the ${maker}
  210. ! - if T, then compilation is submitted according to "submit.to" key (default
  211. ! of which is set in expert.rc, and can be overwritten at the CLI): either "queue", or foreground.
  212. !
  213. ! "my.queue.make" is set in the main rc file (so user can switch it on/off from there).
  214. !
  215. build.make.submit : ${my.queue.make}
  216. ! sub options: assume that %{build.jobs} is less than 24 (default is set in expert, probably to 8)
  217. queue.pbs.options.build : N q o l
  218. queue.pbs.option.build.q : nf
  219. queue.pbs.option.build.N : build-tm
  220. queue.pbs.option.build.o : <auto>
  221. queue.pbs.option.build.l : EC_total_tasks=${build.jobs} EC_hyperthreads=1
  222. !==========================================================================
  223. ! MPI runner (LUCKILY, THE ENVIRONMENT VARIABLES ARE **NOT** EXPANDED UNTIL
  224. ! SCRIPTS ARE SUBMITTED). Depends on:
  225. ! (1) pure openMP, pure MPI or hybrid runs
  226. ! (2) node occupancy: fractional or full (see above)
  227. !==========================================================================
  228. #if "${queue.pbs.option.run.q}" == "np":
  229. mpirun.command : aprun
  230. #if (${my.queue.nthread} > 1):
  231. ! Hybrid (TODO: does it covers pure openMP?)
  232. mpirun.args : -N $EC_tasks_per_node -n $EC_total_tasks -d $OMP_NUM_THREADS -j $EC_hyperthreads
  233. #else
  234. !pure MPI
  235. mpirun.args : -N $EC_tasks_per_node -n $EC_total_tasks -j $EC_hyperthreads
  236. #endif
  237. #else
  238. mpirun.command : /opt/cray/snplauncher/6.3.1/bin/mpiexec
  239. ! pure MPI only. TODO: hybrid, and pure openMP
  240. mpirun.args : -n $EC_total_tasks
  241. #endif
  242. ! name of command and host files (leave empty to not write):
  243. mpirun.cmdfile :
  244. mpirun.hostfile :
  245. !===============================================
  246. ! debugger (FIXME)
  247. !===============================================
  248. ! debugger type: totalview | idb | kdbg
  249. debugger : totalview
  250. ! command for debugger:
  251. debugger.command : totalview -searchPath=${build.sourcedir}
  252. !debugger.command : totalview
  253. !===============================================
  254. ! model data
  255. !===============================================
  256. ! the user scratch directory:
  257. my.scratch : ${SCRATCH}
  258. ! base path to various data files (static):
  259. my.data.dir : /perm/ms/nl/nm6/TM5_INPUT
  260. ! permanent archives to search for meteo files:
  261. #if "${my.meteo.format}" == "tm5-nc"
  262. my.meteo.search : ecfs:/nlh/TM/meteo-nc
  263. #else
  264. my.meteo.search : ecfs:/nlh/TM/meteo
  265. #endif
  266. ! extra install tasks:
  267. my.install.tasks :