Function: reset_stream_res_limit
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
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
1ret = acl.rt.reset_stream_res_limit(stream)
Parameter Description
Parameter |
Description |
|---|---|
stream |
Int, specified stream. If 0 is passed, it indicates the default stream. |
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, 0 on success; else, failure. |
Parent topic: Runtime Configuration