[Swift-commit] r5803 - trunk/bin

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Tue Jun 5 11:45:59 CDT 2012


Author: davidk
Date: 2012-06-05 11:45:58 -0500 (Tue, 05 Jun 2012)
New Revision: 5803

Modified:
   trunk/bin/start-coaster-service
Log:
Ability to allocate multiple cores per task with condor - useful for MPI jobs


Modified: trunk/bin/start-coaster-service
===================================================================
--- trunk/bin/start-coaster-service	2012-05-30 18:58:21 UTC (rev 5802)
+++ trunk/bin/start-coaster-service	2012-06-05 16:45:58 UTC (rev 5803)
@@ -271,14 +271,18 @@
       crash "CONDOR_WORKERS undefined - please check coaster-service.conf"
    fi
 
+   if [ -z "$CONDOR_MACHINE_COUNT" ]; then
+      export CONDOR_MACHINE_COUNT=1
+   fi
+
 cat <<EOF > start_workers.submit
 output = workers.stdout
 error = workers.stderr
-#initialdir = \$PWD 
 executable = $SWIFT_BIN/$WORKER
 arguments = $EXECUTION_URL node .
 notification = Never
 leave_in_queue = TRUE
+machine_count = $CONDOR_MACHINE_COUNT
 queue $CONDOR_WORKERS
 EOF
 




More information about the Swift-commit mailing list