From ketan at ci.uchicago.edu Fri May 6 10:26:03 2011 From: ketan at ci.uchicago.edu (ketan at ci.uchicago.edu) Date: Fri, 6 May 2011 10:26:03 -0500 (CDT) Subject: [Swift-commit] r4450 - www/cookbook Message-ID: <20110506152603.B88969CFC7@svn.ci.uchicago.edu> Author: ketan Date: 2011-05-06 10:26:03 -0500 (Fri, 06 May 2011) New Revision: 4450 Modified: www/cookbook/cookbook-asciidoc.html www/cookbook/cookbook-asciidoc.txt Log: Modified: www/cookbook/cookbook-asciidoc.html =================================================================== --- www/cookbook/cookbook-asciidoc.html 2011-05-04 22:17:58 UTC (rev 4449) +++ www/cookbook/cookbook-asciidoc.html 2011-05-06 15:26:03 UTC (rev 4450) @@ -1079,18 +1079,24 @@
Swift is now installed on Beagle as a module. Swift supports a Coasters based, -PBS-enabled computing environment for Beagle. To get started with Swift on -Beagle follow the steps outlined below:
step 1. Load the Swift module on Beagle as follows: module load swift
step 2. Create a Swift specific folder where all your Swift related work will -stay. (say, mkdir swift-lab)
step 3. To get started with an example, copy the folder at -/home/ketan/labs/catsn.works to the above created swift-lab. (cp -r -/home/ketan/catsn.works ~/swift-lab).
step 4. From the sites file: catsn.works/beagle-coaster.xml, change the path -of swift.workdir to your preferred location (say to ~/swift-lab/swift.workdir) -and the project name to the one you are part of.
step 5. Run the example using following commandline: swift -config cf -tc.file tc -sites.file beagle-coaster-1.xml catsn.swift -n=1
step 2. Create and change to a directory where your Swift related work will +stay. (say, mkdir swift-lab, followed by, cd swift-lab)
step 3. To get started with a simple example running /bin/cat to read an input file data.txt and write to an output file f.nnn.out, copy the folder at /home/ketan/labs/catsn to the above directory. (cp -r /home/ketan/catsn . followed by cd catsn).
step 4. In the sites file: beagle-coaster.xml, make the following two +changes: 1) change the path of workdirectory to your preferred location +(say to /lustre/beagle/$USER/swift-lab/swift.workdir) and 2) Change the +project name to your project (CI-CCR000013) . The workdirectory will contain +execution data related to each run, e.g. wrapper scripts, system information, +inputs and outputs.
step 5. Run the example using following commandline (also found in run.sh): +swift -config cf -tc.file tc -sites.file beagle-coaster.xml catsn.swift -n=1 +. You can further change the value of -n to any arbitrary number to run that +many number of concurrent cat
step 6. Check the output in the generated outdir directory (ls outdir)
Note: Running from sandbox node or requesting 1 hour walltime for upto 3 nodes will get fast prioritized execution. Good for small tests