aclrtStreamAttrValue

typedef union {
    uint64_t failureMode;
    uint32_t overflowSwitch; 
    uint32_t userCustomTag; 
    uint32_t cacheOpInfoSwitch;
    uint32_t reserve[4];
} 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 (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 products

    Atlas Training Series 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 (default): Disable overflow check.
  • 1: Enable overflow check.

userCustomTag

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

cacheOpInfoSwitch

When setting the ACL_STREAM_ATTR_CACHE_OP_INFO (indicating the operator information caching switch) attribute in aclrtStreamAttr, the options are as follows:

  • 0 (default): Disable the operator information caching switch.
  • 1: Enable the operator information caching switch.

reserve

Reserved.