[Swift-commit] r7825 - SwiftApps/swift-galaxy/swift
ketan at ci.uchicago.edu
ketan at ci.uchicago.edu
Tue May 6 13:30:03 CDT 2014
Author: ketan
Date: 2014-05-06 13:30:03 -0500 (Tue, 06 May 2014)
New Revision: 7825
Modified:
SwiftApps/swift-galaxy/swift/swiftforeach.sh
Log:
add numproc
Modified: SwiftApps/swift-galaxy/swift/swiftforeach.sh
===================================================================
--- SwiftApps/swift-galaxy/swift/swiftforeach.sh 2014-05-06 17:26:22 UTC (rev 7824)
+++ SwiftApps/swift-galaxy/swift/swiftforeach.sh 2014-05-06 18:30:03 UTC (rev 7825)
@@ -29,6 +29,7 @@
if [ "$range_or_list" == "list" ] ; then
listfile=$1
shift
+ n=$(wc -l < $listfile)
else
rstart=$1
shift
@@ -36,6 +37,7 @@
shift
stepsize=$1
shift
+ n=$(( ($rend - $rstart) / $stepsize ))
fi
outloc=$1
@@ -229,7 +231,7 @@
$stc -j $(\which java) $wdir/script.swift "${swiftargs}" 2>$logfile
- $turbine -n 3 $wdir/script.tcl
+ $turbine -n $n $wdir/script.tcl
EXITCODE=$?
More information about the Swift-commit
mailing list