Function: reset_device_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 limit is set by calling acl.rt.set_device_res_limit, you can call this API to reset the device resource limit for the current process and restore the default setting.

Prototype

  • C Prototype
    aclError aclrtResetDeviceResLimit(int32_t deviceId)
  • Python Function
    1
    ret = acl.rt.reset_device_res_limit(device_id)
    

Parameters

Parameter

Description

device_id

Int, device ID.

Return Values

Return Value

Description

ret

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