[Swift-commit] r3179 - trunk/libexec

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Oct 26 15:42:09 CDT 2009


Author: hategan
Date: 2009-10-26 15:42:08 -0500 (Mon, 26 Oct 2009)
New Revision: 3179

Modified:
   trunk/libexec/vdl-sc.k
Log:
intrepid params

Modified: trunk/libexec/vdl-sc.k
===================================================================
--- trunk/libexec/vdl-sc.k	2009-10-26 06:22:01 UTC (rev 3178)
+++ trunk/libexec/vdl-sc.k	2009-10-26 20:42:08 UTC (rev 3179)
@@ -57,12 +57,29 @@
 			)
 
 			element(workdirectory, [dir]
-				property(name="workdir", value = dir)
+				property("workdir", dir)
 			)
 			
 			element(scratch, [dir]
-				property(name="scratch", value = dir)
+				property("scratch", dir)
 			)
+			
+			element(intrepidCoasterParams, [optional(averageJobTime, blockSize)]
+				property("scratch", "/scratch")
+				property("workersPerNode", "4")
+				maybe(
+					discard(averageJobTime)
+					blockSize := try(blockSize, 512)
+					parallelism := averageJobTime * 100	
+					echo("parallelism: {parallelism}")
+					property("slots", math:round(parallelism / (blockSize * 4)))
+					property("nodeGranularity", blockSize)
+					property("maxNodes", blockSize)
+					jt := parallelism * 2
+					property("jobThrottle", jt / 100)
+					print("For best results, please set the foreach.max.threads property in swift.properties to {jt}") 
+				)
+			)
 
 			resources(
 				executeFile(file)




More information about the Swift-commit mailing list