Function: device_get_stream_priority_range
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Queries the minimum and maximum stream priorities supported by the hardware.
Prototype
- C Prototype
aclError aclrtDeviceGetStreamPriorityRange(int32_t *leastPriority, int32_t *greatestPriority)
- Python Function
1min, max, ret = acl.rt.device_get_stream_priority_range()
Parameter Description
None.
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, error code: 0 on success; else, failure. |
max |
Int, maximum priority. |
min |
Int, minimum priority. |
Parent topic: Device Management