[Swift-commit] r6482 - demo/cray/swift-2.0/part08
wozniak at ci.uchicago.edu
wozniak at ci.uchicago.edu
Thu Apr 18 16:07:36 CDT 2013
Author: wozniak
Date: 2013-04-18 16:07:35 -0500 (Thu, 18 Apr 2013)
New Revision: 6482
Added:
demo/cray/swift-2.0/part08/README.txt
Removed:
demo/cray/swift-2.0/part08/README
Modified:
demo/cray/swift-2.0/part08/
demo/cray/swift-2.0/part08/p8.swift
Log:
Latest everything
Property changes on: demo/cray/swift-2.0/part08
___________________________________________________________________
Added: svn:ignore
+ output
p8.tcl
Deleted: demo/cray/swift-2.0/part08/README
===================================================================
--- demo/cray/swift-2.0/part08/README 2013-04-18 18:24:07 UTC (rev 6481)
+++ demo/cray/swift-2.0/part08/README 2013-04-18 21:07:35 UTC (rev 6482)
@@ -1,4 +0,0 @@
-
-To run:
-
-run-swift-2-local.sh p8.swift --steps=0 ...
Added: demo/cray/swift-2.0/part08/README.txt
===================================================================
--- demo/cray/swift-2.0/part08/README.txt (rev 0)
+++ demo/cray/swift-2.0/part08/README.txt 2013-04-18 21:07:35 UTC (rev 6482)
@@ -0,0 +1,43 @@
+
+SUMMARY:
+
+This test runs the p8.swift script, running some simple scripts as
+apps and producing output in the user directory.
+
+USAGE:
+
+Make a work directory called, say, WORK
+
+$ cd WORK
+
+# Copy in the Swift script:
+
+$ cp -r /home/users/p01577/Public/demo/part08/p8.swift .
+
+# Copy in the input data:
+
+$ cp -r /home/users/p01577/Public/demo/part08/data .
+
+$ PATH=$PATH:/home/users/p01577/Public/demo/bin
+
+$ run-swift-2-qsub.sh p8.swift --work=$PWD
+
+# Inspect the output:
+
+$ ls output
+
+$ ls *.OU
+
+FURTHER:
+
+run-swift-2-qsub.sh compiles and runs the Swift script. It sets
+everything up, including the locations of Swift programs.
+
+run-swift-2-qsub.sh is user code. You can edit this
+to change compiler options, run time settings, etc.
+
+p8.swift is also user code.
+
+run-swift-2-qsub.sh calls turbine-aprun-run.zsh which is the provided
+interface to Swift. This script is documented at:
+http://www.mcs.anl.gov/exm/local/guides/turbine-sites.html#_raven
Modified: demo/cray/swift-2.0/part08/p8.swift
===================================================================
--- demo/cray/swift-2.0/part08/p8.swift 2013-04-18 18:24:07 UTC (rev 6481)
+++ demo/cray/swift-2.0/part08/p8.swift 2013-04-18 21:07:35 UTC (rev 6482)
@@ -26,15 +26,17 @@
int rnge = toint(argv("range", "100"));
int count = toint(argv("count", "10"));
- file bias = input_file("data/bias.dat");
+ string work = argv("work");
+ file bias = input_file(work+"/data/bias.dat");
+
foreach i in [0:nsim-1] {
- file simout <sprintf("data/sim_%i.out",i)>;
+ file simout <work+sprintf("/data/sim_%i.out",i)>;
simout = mysim5(steps,rnge,bias,count);
sims[i] = simout;
}
- file stats<"output/average.out">;
+ file stats<work+"/output/average.out">;
stats = analyze(sims);
wait (stats) {
printf("SUCCESS!");
More information about the Swift-commit
mailing list