SCASH Getting Started

This document describes, The following example assumes a user environment setting described in Getting Started in the SCore User's Guide.

A simple LAPLACE program on SCASH


The compilation of an SCASH program is as easy as an C compilation. An example of a LAPLACE program can be found in /opt/score/example/scash/laplace.c/laplace_c.c. Copy the program and the include file /opt/score/example/scash/laplace.c/laplace.h to your work directory. Make sure the program is saved as laplace_c.c. Compile the program as follows:

$ scorecc -scash -o laplace_c laplace_c.c

Just as a normal C/C++ compiler, the scorecc compiler produces an executable file, named laplace_c. The scorecc compiler accepts most of the compiler options that the C/C++ compiler accepts.

Running a program on a cluster

You may invoke the Compute Host Lock Client, msgb(1), as follows to find some free hosts in the cluster:

$ msgb -group pcc &

pcc is a group defined in the SCore cluster database, scorehosts.db(5). Invoke the scout program with the same group name on which to run your program:

$ scout -g pcc
SCOUT: Spawn done.   
SCOUT: session started
A new shell process is now created as a child of the scout program. If msgb is running, some or all hosts in the msgb window will turn red when the remote processes are invoked with scout. Note that the host which the scout program is invoked doesn't have to be one of the hosts of your cluster.

Eventually you can invoke the program:

$ scrun -nodes=4x2,network=myrinet ./laplace_c
SCORE: connected (jid=100)
<0:0> SCORE: 8 nodes (4x2) ready.


You can find other SCASH examples under the /opt/score/example/scash directory.

See also

SCore Cluster Software System Reference Guide
SCore C Compiler Front End scorecc
SCASH Omni/OpenMP Getting Started

PCCC logo PC Cluster Consotium

$Id: getting-started.html,v 1.3 2002/03/08 06:24:18 hirose Exp $