Enables or disables the overflow detection function for a specified stream. After the function is disabled, you cannot use the overflow detection operator to check whether a task overflows. This API is synchronous.
The Ascend 310 AI Processor does not support this API in the current version.
The Ascend 910 AI Processor does not support this API in the current version.
The Ascend 310P AI Processor does not support this API in the current version.
aclError aclrtSetStreamOverflowSwitch(aclrtStream stream, uint32_t flag)
Parameter |
Input/Output |
Description |
|---|---|---|
stream |
Input |
Stream to be operated. If NULL is passed, the default stream will be operated. |
flag |
Input |
Overflow detection switch. The options are as follows:
|
0 on success; else, failure.