Function: device_get_stream_priority_range

Applicability

Product

Supported (√/x)

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

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