14.08.2013 Views

Tutorial slides (PDF) - Clemson University

Tutorial slides (PDF) - Clemson University

Tutorial slides (PDF) - Clemson University

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.

Python Interface to BLACS and ScaLAPACK<br />

Important to understand notion of array descriptor:<br />

Distinguish between global and local array. Create local<br />

array in parallel.<br />

int desc[9];<br />

desc[0] = BLOCK_CYCLIC_2D; % MACRO = 1<br />

desc[1] = ConTxt; % must equal -1 if inactive<br />

desc[2] = m; % number of rows in global array<br />

desc[3] = n; % number of columns in global array<br />

desc[4] = mb; % row blocksize<br />

desc[5] = nb; % column blocksize<br />

desc[6] = irsrc; % starting row<br />

desc[7] = icsrc; % starting column<br />

desc[8] = MAX(0, lld); % leading dimension of local array

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

Saved successfully!

Ooh no, something went wrong!