pub unsafe extern "C" fn cuStreamGetPriority(
hStream: CUstream,
priority: *mut c_int,
) -> CUresult
Expand description
\brief Query the priority of a given stream
Query the priority of a stream created using ::cuStreamCreate, ::cuStreamCreateWithPriority or ::cuGreenCtxStreamCreate and return the priority in \p priority. Note that if the stream was created with a priority outside the numerical range returned by ::cuCtxGetStreamPriorityRange, this function returns the clamped priority. See ::cuStreamCreateWithPriority for details about priority clamping.
\param hStream - Handle to the stream to be queried \param priority - Pointer to a signed integer in which the stream’s priority is returned \return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_INVALID_HANDLE, ::CUDA_ERROR_OUT_OF_MEMORY \notefnerr
\sa ::cuStreamDestroy, ::cuStreamCreate, ::cuStreamCreateWithPriority, ::cuGreenCtxStreamCreate, ::cuCtxGetStreamPriorityRange, ::cuStreamGetFlags, ::cudaStreamGetPriority