pub unsafe extern "C" fn cuStreamGetId(
hStream: CUstream,
streamId: *mut c_ulonglong,
) -> CUresult
Expand description
\brief Returns the unique Id associated with the stream handle supplied
Returns in \p streamId the unique Id which is associated with the given stream handle. The Id is unique for the life of the program.
The stream handle \p hStream can refer to any of the following:
- a stream created via any of the CUDA driver APIs such as ::cuStreamCreate and ::cuStreamCreateWithPriority, or their runtime API equivalents such as ::cudaStreamCreate, ::cudaStreamCreateWithFlags and ::cudaStreamCreateWithPriority. Passing an invalid handle will result in undefined behavior.
- any of the special streams such as the NULL stream, ::CU_STREAM_LEGACY and ::CU_STREAM_PER_THREAD. The runtime API equivalents of these are also accepted, which are NULL, ::cudaStreamLegacy and ::cudaStreamPerThread respectively.
\param hStream - Handle to the stream to be queried \param streamId - Pointer to store the Id of the stream
\return ::CUDA_SUCCESS, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_INVALID_HANDLE \notefnerr
\sa ::cuStreamDestroy, ::cuStreamCreate, ::cuStreamGetPriority, ::cudaStreamGetId