aclrtStreamAttrValue

Member

Description

failureMode

When setting the ACL_STREAM_ATTR_FAILURE_MODE attribute in aclrtStreamAttr, the value options are as follows:

  • 0 (default value): If a task fails, continue executing the next task.
  • 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 Series Product

    Atlas A2 Training Series Product/Atlas 800I A2 Inference Product

    Atlas 200/500 A2 Inference Product

    Atlas Inference Series Product

    Atlas Training Series Product

overflowSwitch

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

  • 0 (default): Disable overflow check.
  • 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