[Swift-commit] r8118 - SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/02-loop

wozniak at ci.uchicago.edu wozniak at ci.uchicago.edu
Tue Aug 12 13:04:48 CDT 2014


Author: wozniak
Date: 2014-08-12 13:04:48 -0500 (Tue, 12 Aug 2014)
New Revision: 8118

Added:
   SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/02-loop/run-compute.sh
Modified:
   SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/02-loop/
Log:
Compute node run script



Property changes on: SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/02-loop
___________________________________________________________________
Modified: svn:ignore
   - loop.tcl

   + turbine-directory.txt
loop.tcl


Copied: SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/02-loop/run-compute.sh (from rev 8117, SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/01-hello/run-compute.sh)
===================================================================
--- SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/02-loop/run-compute.sh	                        (rev 0)
+++ SwiftTutorials/ATPESC_2014-08-14/swift-t/examples/02-loop/run-compute.sh	2014-08-12 18:04:48 UTC (rev 8118)
@@ -0,0 +1,18 @@
+#!/bin/bash -eu
+
+source ../../cfg/setup-compute.sh
+SETTINGS=../../cfg/settings-compute.sh
+
+PROCS=4
+while getopts "n:" OPTION 
+do
+  echo $OPTION
+  case ${OPTION} in
+    n) PROCS=${OPTARG} ;;
+    *) exit 1          ;;
+  esac
+done
+
+PROGRAM=loop
+stc ${PROGRAM}.swift
+turbine-cobalt-run.zsh -n ${PROCS} -s ${SETTINGS} ${PROGRAM}.tcl




More information about the Swift-commit mailing list