Function: device_get_stream_priority_range

Applicable Products

Product

Supported (√/x)

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas training products

√

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

Description

Queries the minimum and maximum stream priorities supported by the hardware.

Prototype

  • C Prototype
    aclError aclrtDeviceGetStreamPriorityRange(int32_t *leastPriority, int32_t *greatestPriority)
  • Python Function
    1
    min, max, ret = acl.rt.device_get_stream_priority_range()
    

Parameters

None

Return Values

Return Value

Description

ret

Int, error code. 0 on success; else, failure.

max

Int, maximum priority.

min

Int, minimum priority.