Skip to main content

cuStreamGetPriority

Function cuStreamGetPriority 

Source
pub unsafe extern "C" fn cuStreamGetPriority(
    hStream: CUstream,
    priority: *mut c_int,
) -> CUresult
Expand 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

See also: cuStreamDestroy, cuStreamCreate, cuStreamCreateWithPriority, cuGreenCtxStreamCreate, cuCtxGetStreamPriorityRange, cuStreamGetFlags, cuStreamGetDevice, cudaStreamGetPriority.