aclrtStreamAttr

Enumeration Item

Description

ACL_STREAM_ATTR_FAILURE_MODE = 1

Sets the task scheduling mode for a stream to determine whether to execute the next task after a task within this stream encounters an error.

By default, the task scheduling mode cannot be set for a stream.

The function of setting the task scheduling mode by using this attribute is the same as that of the set_stream_failure_mode call.

ACL_STREAM_ATTR_FLOAT_OVERFLOW_CHECK = 2

Enables or disables the overflow detection function for a specified stream when the upper-layer training framework (such as PyTorch) is connected. After the function is disabled, you cannot use the overflow detection operator to check whether a task overflows.

After the overflow detection function is enabled or disabled, the setting takes effect only for new tasks. Previously delivered tasks remain unaffected.

The function of setting the overflow/underflow detection switch by using this attribute is the same as that of the set_stream_overflow_switch call.

ACL_STREAM_ATTR_USER_CUSTOM_TAG = 3

Sets the overflow detection group tag on a stream to determine the detection granularity when an overflow occurs. If no group tag is set, the process granularity is used by default. If a group tag is set, only streams sharing the same group tag as the stream where an overflow occurs are subject to detection.

ACL_STREAM_ATTR_PRIORITY = 5

Sets the stream priority.

The Ascend 950PR/Ascend 950DT, Atlas A3 training products/Atlas A3 inference products, and Atlas A2 training products/Atlas A2 inference products support the stream priority setting.

The Atlas 200I/500 A2 inference products, Atlas inference products, and Atlas training products do not support the stream priority setting.