Function: reset_stream_res_limit

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

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 Values

Return Value

Description

ret

Int, 0 on success; else, failure.