jcuda.runtime
Interface cudaStreamCallback
public interface cudaStreamCallback
Interface for emulating a CUDA stream callback.
- See Also:
JCuda.cudaStreamAddCallback(cudaStream_t, cudaStreamCallback, Object, int)
Method Summary |
void |
call(cudaStream_t stream,
int status,
java.lang.Object userData)
The function that will be called |
call
void call(cudaStream_t stream,
int status,
java.lang.Object userData)
- The function that will be called
- Parameters:
stream
- The stream as passed to ::cudaStreamAddCallback, may be NULL.status
- ::cudaSuccess or any persistent error on the stream.userData
- User parameter provided at registration.