20.03.2015 Views

Recitation 5: Rendering Fractals

Recitation 5: Rendering Fractals

Recitation 5: Rendering Fractals

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.

Memory Coalescing<br />

●<br />

If you compute the index within the block as:<br />

– i = x + width*y + width*height*z<br />

– then write to output[i]<br />

– threads run along x, therefore coalesced<br />

●<br />

●<br />

Non-coalesced case: x swapped with one of<br />

the other dimensions<br />

Test both coalesced and non-coalesced<br />

speeds, write results into README

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

Saved successfully!

Ooh no, something went wrong!