15.08.2012 Views

Introduction to CUDA C

Introduction to CUDA C

Introduction to CUDA C

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.

Parallel Programming in <strong>CUDA</strong> C<br />

� But wait…GPU computing is about massive parallelism<br />

� So how do we run code in parallel on the device?<br />

� Solution lies in the parameters between the triple angle brackets:<br />

add>( dev_a, dev_b, dev_c );<br />

add>( dev_a, dev_b, dev_c );<br />

� Instead of executing add() once, add() executed N times in parallel

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

Saved successfully!

Ooh no, something went wrong!