Synergy User Manual and Tutorial. - THE CORE MEMORY
Synergy User Manual and Tutorial. - THE CORE MEMORY
Synergy User Manual and Tutorial. - THE CORE MEMORY
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Synergy</strong> <strong>User</strong> <strong>Manual</strong> <strong>and</strong> <strong>Tutorial</strong><br />
The csl file the programs is:<br />
configuration: tupleHello1;<br />
m: master = tupleHello1Master<br />
(factor = 1<br />
threshold = 1<br />
debug = 0<br />
)<br />
-> f: problem<br />
(type = TS)<br />
-> m: worker = tupleHello1Worker<br />
(type = slave)<br />
-> f: result<br />
(type = TS)<br />
-> m: master;<br />
The makefile for the programs is:<br />
CFLAGS = -O1<br />
OBJS = -L$(SNG_PATH)/obj -lsng -lnsl -lsocket<br />
all : nxdr copy<br />
nxdr : master1 worker1<br />
master1 : tupleHello1Master.c<br />
gcc $(CFLAGS) -o tupleHello1Master tupleHello1Master.c $(OBJS)<br />
worker1 : tupleHello1Worker.c<br />
gcc $(CFLAGS) -o tupleHello1Worker tupleHello1Worker.c $(OBJS)<br />
copy : tupleHello1Master tupleHello1Worker<br />
cp tupleHello1Master $(HOME)/bin<br />
cp tupleHello1Worker $(HOME)/bin<br />
To run the “Hello <strong>Synergy</strong>!” distributed application:<br />
1. Make the executables by typing “make” <strong>and</strong> pressing the enter key.<br />
2. Run the application by typing “prun tupleHello1” <strong>and</strong> pressing the enter key.<br />
The screen output for the master terminal should resemble:<br />
[c615111@owin ~/fpc01 ]>prun tupleHello1<br />
== Checking Processor Pool:<br />
++ Benchmark (186) ++ (owin) ready.<br />
== Done.<br />
== Parallel Application Console: (owin)<br />
== CONFiguring: (tupleHello1.csl)<br />
== Default directory: (/usr/classes/cis6151/c615111/fpc01)<br />
++ Automatic program assignment: (worker)->(owin)<br />
133