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.

NumPy - Memory<br />

Q: Where is all my memory going?<br />

A: It disappears a little bit at a time.<br />

BlueGene/P has 512 MB per core.<br />

Compute note kernel is another 34 MB.<br />

NumPy library is ~ 38 MB.<br />

Python Interpreter 12 MB.<br />

Can't always get the last 50 MB, NumPy to blame?<br />

Try this simple test:<br />

import numpy as np<br />

A = np.zero((N,N),dtype=float)<br />

Beware of temporary matrices, they are sometimes not<br />

obvious<br />

D = np.dot(A,np.dot(B,C))

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

Saved successfully!

Ooh no, something went wrong!