Function: get_stream_overflow_switch

C Prototype

aclError aclrtGetStreamOverflowSwitch(aclrtStream stream, uint32_t flag)

Python Function

flag, ret = acl.rt.get_stream_overflow_switch(stream)

Function Usage

Checks whether overflow detection is enabled for a specified stream.

The Atlas 200/300/500 Inference Product does not support this API in the current version.

The Atlas Training Series Product does not support this API in the current version.

Input Description

stream: int, pointer address of the stream to be operated. If 0 is passed, the default stream will be operated.

Return Value

flag: int, overflow detection switch. The options are as follows:

  • 0: disabled
  • 1: enabled

ret: int, error code.