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.

Transparent Scalability<br />

Thread blocks cannot synchronize<br />

© NVIDIA Corporation 2008<br />

So they can run in any order, concurrently or sequentially<br />

This independence gives scalability:<br />

2-Core Device<br />

Block 0 Block 1<br />

Block 2 Block 3<br />

Block 4 Block 5<br />

Block 6 Block 7<br />

A kernel scales across any number of parallel cores<br />

Kernel grid<br />

Block 0 Block 1<br />

Block 2 Block 3<br />

Block 4 Block 5<br />

Block 6 Block 7<br />

4-Core Device<br />

Block 0 Block 1 Block 2 Block 3<br />

Block 4 Block 5 Block 6 Block 7<br />

Implicit barrier between dependent kernels<br />

vec_minus(a, b, c);<br />

vec_dot(c, c);

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

Saved successfully!

Ooh no, something went wrong!