[Swift-commit] r8444 - www/Swift-T
ketan at ci.uchicago.edu
ketan at ci.uchicago.edu
Thu Apr 30 12:14:37 CDT 2015
Author: ketan
Date: 2015-04-30 12:14:36 -0500 (Thu, 30 Apr 2015)
New Revision: 8444
Modified:
www/Swift-T/turbine-sites.html
Log:
Edison
Modified: www/Swift-T/turbine-sites.html
===================================================================
--- www/Swift-T/turbine-sites.html 2015-04-29 20:15:42 UTC (rev 8443)
+++ www/Swift-T/turbine-sites.html 2015-04-30 17:14:36 UTC (rev 8444)
@@ -2348,8 +2348,130 @@
</div></div>
</div>
</div>
+<div class="sect2">
+<h3 id="_edison">Edison</h3>
+<div class="paragraph"><p>Edison is a Cray XC30 system at NERSC.</p></div>
+<div class="sect3">
+<h4 id="_install_setup">Install setup</h4>
+<div class="paragraph"><p>Load appropriate modules:</p></div>
+<div class="listingblock">
+<div class="content">
+<pre><code>module unload PrgEnv-intel darshan cray-shmem
+module load PrgEnv-gnu java</code></pre>
+</div></div>
+<div class="paragraph"><p>Download the latest exm code:</p></div>
+<div class="listingblock">
+<div class="content">
+<pre><code>cd $SCRATCH
+wget http://swift-lang.org/Swift-T/downloads/exm-0.8.0.tar.gz
+tar zxf exm-0.8.0.tar.gz</code></pre>
+</div></div>
+<div class="paragraph"><p>Install c-utils:</p></div>
+<div class="listingblock">
+<div class="content">
+<pre><code>cd $SCRATCH/exm-0.8.0/c-utils
+./configure --enable-shared --prefix=/scratch2/scratchdirs/ketan/exm-install/c-utils
+make && make install</code></pre>
+</div></div>
+<div class="paragraph"><p>Install adlb:</p></div>
+<div class="listingblock">
+<div class="content">
+<pre><code>cd $SCRATCH/exm-0.8.0/lb
+CFLAGS=-I/opt/cray/mpt/default/gni/mpich2-gnu/49/include
+LDFLAGS="-L/opt/cray/mpt/default/gni/mpich2-gnu/49/lib -lmpich"
+./configure CC=gcc --with-c-utils=/scratch2/scratchdirs/ketan/exm-install/c-utils --prefix=/scratch2/scratchdirs/ketan/exm-install/lb --enable-mpi-2
+make && make install</code></pre>
+</div></div>
+<div class="paragraph"><p>Install turbine:</p></div>
+<div class="listingblock">
+<div class="content">
+<pre><code>cd $SCRATCH/exm-0.8.0/turbine
+./configure --with-adlb=/scratch2/scratchdirs/ketan/exm-install/lb --with-c-utils=/scratch2/scratchdirs/ketan/exm-install/c-utils \
+--prefix=/scratch2/scratchdirs/ketan/exm-install/turbine --with-tcl=/global/homes/k/ketan/tcl-install --with-tcl-version=8.6 \
+--with-mpi=/opt/cray/mpt/default/gni/mpich2-gnu/49
+make && make install</code></pre>
+</div></div>
+<div class="paragraph"><p>Install stc:</p></div>
+<div class="listingblock">
+<div class="content">
+<pre><code>cd $SCRATCH/exm-0.8.0/stc
+ant install -Ddist.dir=/scratch2/scratchdirs/ketan/exm-install/stc -Dturbine.home=/scratch2/scratchdirs/ketan/exm-install/turbine</code></pre>
+</div></div>
</div>
+<div class="sect3">
+<h4 id="_environment">Environment</h4>
+<div class="paragraph"><p>Set environment. Add the following to your .bashrc.ext (or equivalent)</p></div>
+<div class="listingblock">
+<div class="content">
+<pre><code>export PATH=$PATH:$SCRATCH/exm-install/stc/bin:$SCRATCH/exm-install/turbine/bin:$SCRATCH/exm-install/turbine/scripts/submit/cray
+source ~/.bash.ext</code></pre>
+</div></div>
</div>
+<div class="sect3">
+<h4 id="_a_simple_script">A simple script</h4>
+<div class="paragraph"><p>Now let us try to compile and run a simple Swift/T script over Edison Compute nodes. Following is a simple "Hello World!" script:</p></div>
+<div class="listingblock">
+<div class="content">
+<pre><code>/**
+ Example 1 - HELLO.SWIFT
+*/
+
+import io;
+
+main
+{
+ printf("Hello world!");
+}</code></pre>
+</div></div>
+<div class="paragraph"><p>Compile the above script using stc:</p></div>
+<div class="listingblock">
+<div class="content">
+<pre><code>stc hello.swift</code></pre>
+</div></div>
+<div class="paragraph"><p>A TCL (.tic) file will be generated on successful compilation. Run the generated TCL file using turbine-cray submit script:</p></div>
+<div class="listingblock">
+<div class="content">
+<pre><code>turbine-cray-run.zsh -n 2 hello.tic</code></pre>
+</div></div>
+<div class="paragraph"><p>Output from the above command will be similar to the following:</p></div>
+<div class="listingblock">
+<div class="content">
+<pre><code>TURBINE_OUTPUT=/global/homes/k/ketan/turbine-output/2015/04/30/09/09/53
+`hello.tic' -> `/global/homes/k/ketan/turbine-output/2015/04/30/09/09/53/hello.tic'
+SCRIPT=hello.tic
+PPN=1
+TURBINE_OUTPUT=/global/homes/k/ketan/turbine-output/2015/04/30/09/09/53
+WALLTIME=00:15:00
+PROCS=2
+NODES=2
+wrote: /global/homes/k/ketan/turbine-output/2015/04/30/09/09/53/turbine-cray.sh
+JOB_ID=2816478.edique02</code></pre>
+</div></div>
+<div class="paragraph"><p>Inspect the results with:</p></div>
+<div class="listingblock">
+<div class="content">
+<pre><code>cat /global/homes/k/ketan/turbine-output/2015/04/30/09/09/53/output.txt.2816478.edique02.out</code></pre>
+</div></div>
+<div class="paragraph"><p>The following will be the contents:</p></div>
+<div class="listingblock">
+<div class="content">
+<pre><code> 0.000 MODE: WORK
+ 0.000 WORK TYPES: WORK
+ 0.000 WORKERS: 1 RANKS: 0 - 0
+ 0.000 SERVERS: 1 RANKS: 1 - 1
+ 0.000 WORK WORKERS: 1 RANKS: 0 - 0
+ 0.000 MODE: SERVER
+ 0.062 function:swift:constants
+ 0.062 enter function: __entry
+Hello world!
+ 0.163 turbine finalizing
+ 0.104 turbine finalizing
+Application 12141240 resources: utime ~0s, stime ~0s, Rss ~118364, inblocks ~2287, outblocks ~50</code></pre>
+</div></div>
+</div>
+</div>
+</div>
+</div>
<div class="sect1">
<h2 id="_cloud">Cloud</h2>
<div class="sectionbody">
@@ -2474,7 +2596,7 @@
<div id="footer">
<div id="footer-text">
Version 0.8.0<br />
-Last updated 2015-04-29 15:15:29 CDT
+Last updated 2015-04-30 11:17:06 CDT
</div>
</div>
</body>
More information about the Swift-commit
mailing list