Synergy User Manual and Tutorial. - THE CORE MEMORY
Synergy User Manual and Tutorial. - THE CORE MEMORY
Synergy User Manual and Tutorial. - THE CORE MEMORY
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>Synergy</strong> <strong>User</strong> <strong>Manual</strong> <strong>and</strong> <strong>Tutorial</strong><br />
}<br />
status = cnf_tsput(res, tpname, Ci, tplength);<br />
sleep(1);<br />
}<br />
}<br />
// Else a zero length tuple was received<br />
else{<br />
printf("Worker: Error-received zero length tuple");<br />
printf("Worker: Terminated\n");<br />
cnf_term();<br />
}<br />
To run the matrix multiplication 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 tupleMat1” <strong>and</strong> pressing the enter key.<br />
The screen output for the master terminal with <strong>Synergy</strong>’s initialization <strong>and</strong> termination<br />
output removed should resemble:<br />
[c615111@owin ~/fpc05 ]>prun tupleMat1<br />
Master: Tuple spaces open complete<br />
Master: Processors 2<br />
Master: Matrix A<br />
1 0 1 0 0 0<br />
0 1 0 1 0 0<br />
1 0 1 0 1 0<br />
0 1 0 1 0 1<br />
0 0 1 0 1 0<br />
0 0 0 1 0 1<br />
Master: Matrix B<br />
0 0 1 0 -1 0<br />
0 0 0 1 0 -1<br />
1 0 -1 0 1 0<br />
0 1 0 -1 0 1<br />
-1 0 1 0 0 0<br />
0 -1 0 1 0 0<br />
Master: Starting C = A . B<br />
Master: Putting Length 144 Name B<br />
Master: tplength = 24<br />
Master: Putting item A0 1 0 1 0 0 0<br />
Master: Putting item A1 0 1 0 1 0 0<br />
Master: Putting item A2 1 0 1 0 1 0<br />
Master: Putting item A3 0 1 0 1 0 1<br />
Master: Putting item A4 0 0 1 0 1 0<br />
Master: Putting item A5 0 0 0 1 0 1<br />
Worker: Opening tuple spaces<br />
Worker: Tuple spaces open complete<br />
Worker: Matrix B<br />
0 0 1 0 -1 0<br />
0 0 0 1 0 -1<br />
Master: Received 0<br />
163