aclrtStreamAttrValue

1
2
3
4
5
6
7
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 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.

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.

cacheOpInfoSwitch

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

  • 0 (default value): disables the operator information caching switch.
  • 1: enables the operator information caching switch.

reserve

Reserved.