Function: get_stream_available_num

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas training product

Atlas inference product

Atlas 200I/500 A2 inference product

Description

Obtains the number of available streams on the current device.

Prototype

  • C Prototype
    1
    aclError aclrtGetStreamAvailableNum(uint32_t *streamCount)
    
  • Python Function
    1
    stream_count, ret = acl.rt.get_stream_available_num()
    

Parameters

None

Return Value

Return Value

Description

stream_count

Int, number of available streams.

ret

Int, 0 on success; else, failure.