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.
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.
![]() |
PC Cluster Consotium |