Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
x |
|
x |
|
x |
Enables or disables overflow detection for a specified stream when the upper-layer training framework (such as PyTorch) is connected. If disabled, you cannot use the overflow detection operator to check whether a task overflows.
1 | aclError aclrtSetStreamOverflowSwitch(aclrtStream stream, uint32_t flag) |
1 | ret = acl.rt.set_stream_overflow_switch(stream, flag) |
Parameter |
Description |
|---|---|
stream |
Int, pointer address of the specified stream. If 0 is passed, the default stream will be operated. |
flag |
Int, overflow detection switch. The options are as follows:
|
Return Value |
Description |
|---|---|
ret |
Int, error code. 0 on success; else, failure. |
The setting takes effect only for tasks created after this API call.