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, 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.

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:

int

See also

cuStreamGetPriority