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, the next task will still be executed.
  • 1: If a task fails, subsequent tasks will not be 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 products

    Atlas training product

overflowSwitch

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

  • 0: disables overflow detection. The default value is 0.
  • 1: enables overflow detection.

userCustomTag

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

streamPriority

When the ACL_STREAM_ATTR_PRIORITY (stream priority) attribute in aclrtStreamAttr is set, the value range is [0, 7]. A smaller value indicates a higher priority. The default value is 0.

reserve

Reserved.