pub unsafe extern "C" fn cuStreamGetPriority(
hStream: CUstream,
priority: *mut c_int,
) -> CUresultExpand description
Query the priority of a given stream.
Query the priority of a stream created using cuStreamCreate, cuStreamCreateWithPriority or cuGreenCtxStreamCreate and return the priority in 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.
Note that this function may also return error codes from previous, asynchronous launches.
§Parameters
hStream: Handle to the stream to be queried.priority: Pointer to a signed integer in which the stream’s priority is returned.
§Return value
CUresult::CUDA_SUCCESSCUresult::CUDA_ERROR_DEINITIALIZEDCUresult::CUDA_ERROR_NOT_INITIALIZEDCUresult::CUDA_ERROR_INVALID_CONTEXTCUresult::CUDA_ERROR_INVALID_VALUECUresult::CUDA_ERROR_INVALID_HANDLECUresult::CUDA_ERROR_OUT_OF_MEMORY
See also: cuStreamDestroy, cuStreamCreate, cuStreamCreateWithPriority, cuGreenCtxStreamCreate, cuCtxGetStreamPriorityRange, cuStreamGetFlags, cuStreamGetDevice, cudaStreamGetPriority.