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

matrix_row = 0;<br />

// Loop until all numbers are sent to workers<br />

while (remaining > 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 />

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

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

// time returned by worker<br />

array_pos = 2;<br />

// Put chunk_size in last index<br />

rows[0] = chunk_size;<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!