cuda.bindings._v2.driver.ctx_get_stream_priority_range#
- cuda.bindings._v2.driver.ctx_get_stream_priority_range() tuple#
Returns numerical values that correspond to the least and greatest stream priorities.
Returns in
*least_priorityand*greatest_prioritythe numerical values that correspond to the least and greatest stream priorities respectively. Stream priorities follow a convention where lower numbers imply greater priorities. The range of meaningful stream priorities is given by [*greatest_priority,*least_priority]. If the user attempts to create a stream with a priority value that is outside the meaningful range as specified by this API, the priority is automatically clamped down or up to either*least_priorityor*greatest_priorityrespectively. SeecuStreamCreateWithPriorityfor details on creating a priority stream. A NULL may be passed in for*least_priorityor*greatest_priorityif the value is not desired. This function will return ‘0’ in both*least_priorityand*greatest_priorityif the current context’s device does not support stream priorities (seecuDeviceGetAttribute).- Returns:
- int: Pointer to an int in which the numerical value for least
stream priority is returned.
- int: Pointer to an int in which the numerical value for greatest
stream priority is returned.
- Return type:
A 2-tuple containing
See also
cuCtxGetStreamPriorityRange