MCPcopy Create free account
hub / github.com/RenderKit/oidn / cudaStreamAddCallback

Function cudaStreamAddCallback

devices/cuda/curtn.cpp:767–775  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

765 }
766
767 cudaError_t CUDARTAPI cudaStreamAddCallback(cudaStream_t stream,
768 cudaStreamCallback_t callback,
769 void* userData,
770 unsigned int flags)
771 {
772 StreamCallbackDesc* desc = new StreamCallbackDesc{callback, userData};
773 CUresult result = cuStreamAddCallback(stream, Runtime::streamCallback, desc, 0);
774 return Runtime::setError(result);
775 }
776
777 cudaError_t CUDARTAPI cudaStreamSynchronize(cudaStream_t stream)
778 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected