Tutorial: Introduction to CUDA Fortran | GTC 2013
Tutorial: Introduction to CUDA Fortran | GTC 2013
Tutorial: Introduction to CUDA Fortran | GTC 2013
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
GPU/CPU Synchronization<br />
• cudaDeviceSynchronize()<br />
– Blocks until all previously issued operations on the GPU complete<br />
• cudaStreamSynchronize(stream)<br />
– Blocks until all previously issued operations <strong>to</strong> stream complete<br />
• cudaStreamQuery(stream)<br />
– Indicates whether stream is idle<br />
– Does not block CPU code