[Dart-dev] DART/branches Revision: 12102

dart at ucar.edu dart at ucar.edu
Fri Nov 10 16:40:52 MST 2017


thoar at ucar.edu
2017-11-10 16:40:51 -0700 (Fri, 10 Nov 2017)
92
The stage_experiment.csh script is pretty mature.
The run_filter.csh.template is not done.




Added: DART/branches/coamps/models/coamps_nest/shell_scripts/run_filter.csh.template
===================================================================
--- DART/branches/coamps/models/coamps_nest/shell_scripts/run_filter.csh.template	                        (rev 0)
+++ DART/branches/coamps/models/coamps_nest/shell_scripts/run_filter.csh.template	2017-11-10 23:40:51 UTC (rev 12102)
@@ -0,0 +1,263 @@
+#!/bin/tcsh
+#
+# DART software - Copyright UCAR. This open source software is provided
+# by UCAR, "as is", without charge, subject to all terms of use at
+# http://www.image.ucar.edu/DAReS/DART/DART_download
+#
+# DART $Id: run_filter.csh.template 11611 2017-05-05 23:10:55Z thoar at ucar.edu $
+#
+#===============================================================================
+# This block of directives constitutes the preamble for the LSF queuing system
+#
+# the normal way to submit to the queue is:    bsub < run_filter.csh
+#
+# an explanation of the most common directives follows:
+# -J Job_name
+# -o STDOUT_filename
+# -e STDERR_filename
+# -P account_code_number
+# -q queue    cheapest == [standby, economy, (regular,debug), premium] == $$$$
+# -n number of MPI processes (not nodes)
+# -W hh:mm  wallclock time (required on some systems)
+#
+#BSUB -J coamps_filter
+#BSUB -o coamps_filter.%J.log
+#BSUB -P P86850054
+#BSUB -q regular
+#BSUB -n 48
+#BSUB -R "span[ptile=16]"
+#BSUB -W 1:00
+#BSUB -N -u ${USER}@ucar.edu
+#
+#===============================================================================
+# This block of directives constitutes the preamble for the SLURM queuing system.
+# the normal way to submit with slurm:  sbatch run_filter.csh
+#
+#SBATCH --job-name=filter
+#SBATCH --output=filter-%A.log
+#SBATCH --error=filter-%A.err
+#SBATCH --ntasks=16
+#SBATCH --time=00:30:00
+#SBATCH --error=filter-%A.err
+#SBATCH --output=filter-%A.log
+#SXXXXX --dependency=afterok:ADVANCEJOBID
+#
+#===============================================================================
+
+if ($?LS_SUBCWD) then
+
+   set ORIGINALDIR = $LS_SUBCWD
+   set     JOBNAME = $LSB_JOBNAME
+   set       JOBID = $LSB_JOBID
+   set     MYQUEUE = $LSB_QUEUE
+   set      MYHOST = $LSB_SUB_HOST
+   set    NODELIST = $LSB_SUB_HOST
+   #>@todo NODELIST wrong for LSF ...
+   set   LAUNCHCMD = "mpirun.lsf"
+
+else if ($?SLURM_JOB_ID) then
+
+   set ORIGINALDIR = $SLURM_SUBMIT_DIR
+   set     JOBNAME = $SLURM_JOB_NAME
+   set       JOBID = $SLURM_JOBID
+   set     MYQUEUE = $SLURM_JOB_PARTITION
+   set      MYHOST = $SLURM_SUBMIT_HOST
+   set    NODELIST = $SLURM_NODELIST
+   set   LAUNCHCMD = "mpirun -np $SLURM_NTASKS -bind-to core"
+
+else if ($?PBS_O_WORKDIR) then
+
+else
+
+   set ORIGINALDIR = `pwd`
+   set     JOBNAME = coamps_filter
+   set       JOBID = $$
+   set     MYQUEUE = Interactive
+   set      MYHOST = $host
+   set    NODELIST = $host
+   set   LAUNCHCMD = ""
+
+endif
+
+#----------------------------------------------------------------------
+# Just an echo of job attributes
+#----------------------------------------------------------------------
+
+echo
+echo "${JOBNAME} ($JOBID) submit directory ${ORIGINALDIR}"
+echo "${JOBNAME} ($JOBID) submit      host ${MYHOST}"
+echo "${JOBNAME} ($JOBID) running in queue ${MYQUEUE}"
+echo "${JOBNAME} ($JOBID) running       on ${NODELIST}"
+echo "${JOBNAME} ($JOBID) started at "`date`
+echo
+
+cd EXPERIMENT_DIRECTORY
+
+#=========================================================================


More information about the Dart-dev mailing list