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

}<br />

}<br />

if(N 0){<br />

// Set entry name<br />

strcpy(tpname,"*");<br />

// Get entry from result tuple space<br />

tplength = cnf_tsget(res, tpname, rows, 0);<br />

// Get number rows in this chunk from last index<br />

chunk_size = rows[0];<br />

// Get time returned by worker<br />

worker_time += rows[1];<br />

// Convert beginning row of entry to an integer<br />

matrix_row = atoi(tpname);<br />

printf("Master: Recieved %s Size %d\n", tpname, chunk_size);<br />

// Set the position in the array to 2<br />

array_pos = 2;<br />

}<br />

// Assemble the result matrix C<br />

// Loop through recieved rows<br />

printf("Master: Recieved\n");<br />

for (i= 0; i

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

Saved successfully!

Ooh no, something went wrong!