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.

Host Synchronization<br />

All kernel launches are asynchronous<br />

© NVIDIA Corporation 2008<br />

control returns to CPU immediately<br />

kernel executes after all previous <strong>CUDA</strong> calls have<br />

completed<br />

cudaMemcpy is synchronous<br />

control returns to CPU after copy completes<br />

copy starts after all previous <strong>CUDA</strong> calls have completed<br />

cudaThreadSynchronize()<br />

blocks until all previous <strong>CUDA</strong> calls complete<br />

47

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

Saved successfully!

Ooh no, something went wrong!