28.10.2014 Views

Synergy User Manual and Tutorial. - THE CORE MEMORY

Synergy User Manual and Tutorial. - THE CORE MEMORY

Synergy User Manual and Tutorial. - THE CORE MEMORY

SHOW MORE
SHOW LESS

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 />

The screen output for the worker terminal with <strong>Synergy</strong>’s initialization <strong>and</strong> termination<br />

output removed should resemble:<br />

Worker: Opening tuple spaces<br />

Worker: Tuple spaces open complete<br />

The B double matrix<br />

0 0 0 0 0 0 0 0 0 1<br />

0 0 0 0 0 0 0 0 1 -1<br />

0 0 0 0 0 0 0 1 -1 0<br />

0 0 0 0 0 0 1 -1 0 0<br />

0 0 0 0 0 1 -1 0 0 0<br />

0 0 0 0 1 -1 0 0 0 0<br />

0 0 0 1 -1 0 0 0 0 0<br />

0 0 1 -1 0 0 0 0 0 0<br />

0 1 -1 0 0 0 0 0 0 0<br />

1 -1 0 0 0 0 0 0 0 0<br />

Worker: chunk_size 4 matrix_row 0<br />

Worker: Recieved<br />

1 1 1 1 1 1 1 1 1 1<br />

Worker: Calculated array CA0+0<br />

1 0 0 0 0 0 0 0 0 0<br />

Worker: Recieved<br />

1 1 1 1 1 1 1 1 1 0<br />

Worker: Calculated array CA0+1<br />

0 1 0 0 0 0 0 0 0 0<br />

Worker: Recieved<br />

1 1 1 1 1 1 1 1 0 0<br />

Worker: Calculated array CA0+2<br />

0 0 1 0 0 0 0 0 0 0<br />

Worker: Recieved<br />

1 1 1 1 1 1 1 0 0 0<br />

Worker: Calculated array CA0+3<br />

0 0 0 1 0 0 0 0 0 0<br />

Worker: Putting 0<br />

Worker: Recieved the terminal signal<br />

Worker: Terminated<br />

To run the matrix multiplication distributed application with chunk size of 200 <strong>and</strong> N =<br />

500 (a 500 x 500 matrix):<br />

1. Set the factor value in the csl file to 200 (as shown below)<br />

2. Make the executables by typing “make SIZE=500” <strong>and</strong> pressing the enter key.<br />

3. Run the application by typing “prun tupleMat2” <strong>and</strong> pressing the enter key.<br />

configuration: tupleMat2;<br />

m: master = tupleMat2Master<br />

(factor = 200<br />

threshold = 1<br />

debug = 0<br />

182

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!