Function: reset_stream_res_limit

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

After the device resource limits of a specified stream are set by calling acl.rt.set_stream_res_limit, you can call this API to reset the device resource limits of the specified stream to the default setting. You can call acl.rt.get_stream_res_limit to query the default resource limits.

Prototype

  • C Prototype
    aclError aclrtResetStreamResLimit(aclrtStream stream)
  • Python Function
    1
    ret = acl.rt.reset_stream_res_limit(stream)
    

Parameters

Parameter

Description

stream

Int, specified stream. If 0 is passed, it indicates the default stream.

Return Value

Return Value

Description

ret

Int, 0 on success; else, failure.