29.01.2013 Views

Tutorial CUDA

Tutorial CUDA

Tutorial CUDA

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.

Reduce 1: Blocking the Data<br />

Block IDs<br />

Split the work among the N multiprocessors (16 on<br />

G80) by launching numBlocks=N thread blocks<br />

© NVIDIA Corporation 2008<br />

b = numBlocks<br />

…<br />

0<br />

…<br />

…<br />

Array of<br />

the numValues values<br />

to be reduced<br />

…<br />

b-1

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

Saved successfully!

Ooh no, something went wrong!