aclrtStreamAttrValue

Member

Description

failureMode

When setting the ACL_STREAM_ATTR_FAILURE_MODE (indicating the stream task scheduling mode) attribute in aclrtStreamAttr, the options are as follows:

  • 0: Continue to execute the next task after a task fails. The default value is 0.
  • 1: If a task fails, the subsequent tasks are not executed. This mode is also called stop-on-failure. After the stop-on-failure mode is triggered, new tasks cannot be delivered.

    If the stop-on-failure mode is set for a stream, the stop-on-failure mode also applies to other streams in the context of the stream. This restriction applies to the following product models:

    Atlas A3 training product/Atlas A3 inference product

    Atlas A2 training product/Atlas A2 inference product

    Atlas 200I/500 A2 inference product

    Atlas inference product

    Atlas training product

overflowSwitch

When setting the ACL_STREAM_ATTR_FLOAT_OVERFLOW_CHECK (indicating the overflow detection switch) attribute in aclrtStreamAttr, the options are as follows:

  • 0: Overflow detection is disabled. The default value is 0.
  • 1: Enable overflow check.

userCustomTag

When setting the ACL_STREAM_ATTR_USER_CUSTOM_TAG (overflow detection group tag) attribute in aclrtStreamAttr, the value range of the attribute is from 0 to the maximum value of the uint32_t type.

reserve

Reserved.