- Timestamp:
- 2015-11-26T16:55:09+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2015/dev_r5092_CNRS18_TRUST/NEMOGCM/TRUST/config/arch_template.cfg
r5799 r5929 2 2 ##--------------------------------------------------- 3 3 4 ## Copy to root (./config) and rename it by keeping '.cfg' extension, then fill in according to your (super)computer 5 ## Rules for completion: 6 ## Undefined variables (=) are mandatory 7 ## Void " " (='') " " optional 8 ## Look into other configuration file for examples 9 ## It will be called by its name without the extension 4 ## Copy to root, rename it and then fill in according to your (super)computer environment 5 ## Rules for completion: undefined variables (=) are mandatory & void variables (='') are optional 6 ## Look into other configuration file for examples 10 7 11 8 12 9 ## Default settings 13 10 ##--------------------------------------------------- 11 # (Super)Computer environment (${TRUS_XIOS} is already defined in the user configuration file) 12 TRUS_ENVI=${TRUS_XIOS}/arch/arch-${TRUS_HPCC} 13 ## If `module` is available, ${TRUS_ENVI}.env will be sourced 14 ## If not (scheduled jobs), it will be ${TRUS_ENVI}.path or finally ${TRUS_ENVI} 14 15 15 ## (Super)Computer environment (can be void if $PATH is already setted) 16 ## If `module` command is available, arch-${TRUS_HPCC}.env will be sourced. 17 ## If not (scheduled jobs by `cron`/`at` commands), it will be arch-${TRUS_HPCC}.path or any file given 18 TRUS_ENVI=${TRUS_XIOS}/arch/arch-${TRUS_HPCC} # ${TRUS_XIOS} is defined from user configuration file 19 20 ## Number of compiling processes 21 [ -z "${TRUS_NPRO}" ] && TRUS_NPRO=1 22 23 ## Command to compare 2 netCDF restart files in argument (think to load software in $PATH by any way) 16 ## Comparison command with restart files as argument (think to append $PATH by any way) 24 17 TRUS_CDOD='cdo diffn' 25 18 26 27 ## Job commands 28 ##--------------------------------------------------- 29 30 ## Use with `eval ${JOB_....}` because they will certainly need to have job ID as argument ("\${JOB_ID}") 31 ## It will be taken on the fly from standard output returned at the submission of the job 32 33 TRUS_JSUB= ## Submit a job and get his ID in return (assigned to ${JOB_ID}). Use absolute path, 34 ## ./batch folder has been created to contain your submission script but it won't be copied into ${TRUS_TEST} 35 ## ex: `llsubmit ${TRUS_DIRE}/batch/${TRUS_HPCC}.sh | grep -oe '\<[0-9]*\>'` 36 TRUS_JSTA= ## Test state of the submitted job (true -> pending/running or false -> completed/crashed) 37 ## ex: "llq | grep \${JOB_ID}" 38 TRUS_JKIL= ## Kill the submitted job 39 ## ex: "llcancel \${JOB_ID}" 40 41 ## Computational performances of finished job 42 TRUS_JTIM='' ## Get CPU elapsed time 43 ## ex: `grep IdrisMemMPI NEMO_CI_\${JOB_ID} | cut -d, -f1 | awk '{print \$(NF-1),\$NF}'` 44 TRUS_JPME='' ## Get max physical memory 45 ## ex: `grep IdrisMemMPI NEMO_CI_\${JOB_ID} | cut -d, -f3 | awk '{print \$3 ,\$4 }'` 46 TRUS_JVME='' ## Get " " virtual "" 47 48 ## Get job informations to fill in a logfile during computation 49 TRUS_JINF='' ## ex: "llq -x \${JOB_ID}" 19 [ -z "${TRUS_NPRO}" ] && TRUS_NPRO= ## Number of compiling processes 20 [ -z "${TRUS_TOUT}" ] && TRUS_TOUT= ## Timeout for computation (s) 50 21 51 22 52 ## Available softwares/librairies23 ## (Super)computer environment 53 24 ##--------------------------------------------------- 25 ## Job commands will almost always be used with `eval ${TRUS_JXXX}` because 26 ## they will certainly need job ID number as argument for working 27 TRUS_JSPT= ## Submission script contained ./batch folder, will be copied to testing folder 28 TRUS_JSUB= ## Submit a job and get his ID on the fly (assigned to ${TRUS_JIDN}) 29 ## ex: `llsubmit ${TRUS_JSPT} | grep -oe '\<[0-9]*\>'` 30 TRUS_JSTA= ## Test state of the submitted job (true -> pending/running or false -> completed/crashed) 31 ## ex: "llq | grep \${TRUS_JIDN}" 32 TRUS_JKIL= ## Kill the submitted job 33 ## ex: "llcancel \${TRUS_JIDN}" 54 34 55 ## Fortran compiler version (use with `${TRUS_CMPF} --version`) 56 TRUS_CMPF='' ## ex: 'ifort'|'gfortran'|'pgfortran'|... 35 ## Computational performances of job (respectively elapsed time, max physical & virtual memory) 36 TRUS_JTIM='' ## ex: "grep IdrisMemMPI NEMO_CI_\${TRUS_JIDN} | cut -d, -f1 | awk '{print \$(NF-1),\$NF}" 37 TRUS_JPME='' ## ex: "grep IdrisMemMPI NEMO_CI_\${TRUS_JIDN} | cut -d, -f3 | awk '{print \$3 ,\$4 }" 38 TRUS_JVME='' ## ex: "grep IdrisMemMPI NEMO_CI_\${TRUS_JIDN} | cut -d, -f2 | awk '{print \$3 ,\$4 }" 57 39 58 ## Software releases (string pattern to match just before the number in $PATH): 59 TRUS_CDOR='' ## CDO (Climate Data Operators) 60 ## ex: 'cdo'|'nco'|... 61 TRUS_MPIR='' ## MPI libraries 62 ## ex: 'openmpi'|'mpich'|... 63 TRUS_CDFR='' ## NetCDF " " 64 ## ex: 'netcdf'|'netcdf-parallel'|... 40 TRUS_JINF='' ## Get job informations to fill in a logfile during computation 41 ## ex: "llq -x \${TRUS_JIDN}" 65 42 43 ## Compiler (use with `${TRUS_CMPV} --version`) 44 TRUS_CMPV='' ## ex: 'ifort'|'gfortran'|'pgfortran'|... 66 45 67 ## Personal settings68 ## ---------------------------------------------------69 70 ## Timeout for computation (s) 71 [ -z "${TRUS_TOUT}" ] && TRUS_TOUT= 46 ## Software/libraries (string pattern to match just before the release number in $PATH) 47 ## Respectively CDO (Climate Data Operators) / MPI libraries / NetCDF libraries 48 TRUS_CDOR='' ## ex: 'cdo/'|'netcdf-utils-' 49 TRUS_MPIR='' ## ex: 'intel/impi/'|'bullxmpi/' 50 TRUS_CDFR='' ## ex: 'netcdf/'|'netcdf-'
Note: See TracChangeset
for help on using the changeset viewer.