cuda.bindings._v2.driver.stream_get_priority#
- cuda.bindings._v2.driver.stream_get_priority(intptr_t h_stream) int#
Query the priority of a given stream.
Query the priority of a stream created using
cuStreamCreate,cuStreamCreateWithPriorityorcuGreenCtxStreamCreateand return the priority inpriority. Note that if the stream was created with a priority outside the numerical range returned bycuCtxGetStreamPriorityRange, this function returns the clamped priority. SeecuStreamCreateWithPriorityfor details about priority clamping.- Parameters:
h_stream (intptr_t) – Handle to the stream to be queried.
- Returns:
- Pointer to a signed integer in which the stream’s priority is
returned.
- Return type:
See also
cuStreamGetPriority