Description Usage Arguments References See Also
Adds a callback to be called on the host after all currently enqueued items in the stream have completed. For each cudaStreamAddCallback call, a callback will be executed exactly once. The callback will block later work in the stream until it is finished.
1 | cudaStreamAddCallback(stream, callback, userData, flags)
|
stream |
Stream to add callback to |
callback |
The function to call once preceding stream operations are complete |
userData |
User specified data to be passed to the callback function |
flags |
Reserved for future use, must be 0 |
http://docs.nvidia.com/cuda/cuda-driver-api/index.html
cudaStreamCreate
cudaStreamCreateWithFlags
cudaStreamQuery
cudaStreamSynchronize
cudaStreamWaitEvent
cudaStreamDestroy
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.