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

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

// Put entry in tuple space<br />

status = cnf_tsput(tsd, tpname, B, tplength);<br />

// Create <strong>and</strong> print matrix A<br />

makeDblMat(A);<br />

if(N 0) {<br />

// If remaining rows is less than chunk size<br />

// set number of rows sent to remaining rows<br />

if (remaining < chunk_size)<br />

chunk_size = remaining;<br />

// Subtract rows being sent from remaining rows<br />

remaining = remaining - chunk_size;<br />

printf("Master: chunk_size(%d) remaining(%d) \n",<br />

chunk_size, remaining);<br />

// Put chunk_size in first index<br />

rows[0] = chunk_size;<br />

// Set rows array position to 2<br />

// Second position (1) is reserved for<br />

// time returned by worker<br />

array_pos = 2;<br />

// Put rows of A matrix in rows array<br />

for (i=0; i

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

Saved successfully!

Ooh no, something went wrong!