Skip to main content

cudaStreamGetPriority

Function cudaStreamGetPriority 

Source
pub unsafe extern "C" fn cudaStreamGetPriority(
    hStream: cudaStream_t,
    priority: *mut c_int,
) -> cudaError_t
Expand description

Query the priority of a stream.

Query the priority of a stream. The priority is returned in in priority. Note that if the stream was created with a priority outside the meaningful numerical range returned by cudaDeviceGetStreamPriorityRange, this function returns the clamped priority. See cudaStreamCreateWithPriority for details about priority clamping.

§Parameters

  • hStream: Handle to the stream to be queried.
  • priority: Pointer to a signed integer in which the stream’s priority is returned.