[cig-commits] commit: Run jobs in the development queue if they fit
Mercurial
hg at geodynamics.org
Sun Jul 3 20:04:28 PDT 2011
changeset: 13:83f3a2eac2cd
user: Walter Landry <wlandry at caltech.edu>
date: Tue Jun 21 15:54:55 2011 -0700
files: backend/specfem_launcher.sh
description:
Run jobs in the development queue if they fit
diff -r 16848b92a240 -r 83f3a2eac2cd backend/specfem_launcher.sh
--- a/backend/specfem_launcher.sh Sun Jun 19 11:45:56 2011 -0700
+++ b/backend/specfem_launcher.sh Tue Jun 21 15:54:55 2011 -0700
@@ -56,4 +56,15 @@ perl -pi -e s/MINUTES/${minutes}/ sge_sc
perl -pi -e s/MINUTES/${minutes}/ sge_script
perl -pi -e s/NPROCS/${n_procs}/ sge_script
+# Put the job on the development queue if it fits
+
+n_chunks=`grep NCHUNKS DATA/Par_file | cut -d = -f 2`
+n_procs=`echo $n_chunks*$nproc_xi*$nproc_eta | bc`
+
+if [ hours -lt 2 ]; then
+ if [ n_procs -le 256 ]; then
+ perl -pi -e s/normal/development/ sge_script
+ fi
+fi
+
qsub sge_script
More information about the CIG-COMMITS
mailing list