aclrtGetStreamAttribute

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

√

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference products

√

Atlas 200I/500 A2 inference products

√

Atlas inference products

√

Atlas training products

√

Function

Obtains attribute values of a stream.

Prototype

1
aclError aclrtGetStreamAttribute(aclrtStream stream, aclrtStreamAttr stmAttrType, aclrtStreamAttrValue *value)

Parameters

Parameter

Input/Output

Description

stream

Input

Stream. For details about the type definition, see aclrtStream.

stmAttrType

Input

Attribute type. For details about the type definition, see aclrtStreamAttr.

value

Output

Attribute value. For details about the type definition, see aclrtStreamAttrValue.

Returns

0 on success; otherwise, failure. For details, see aclError.

Restrictions

For the Ascend 950PR/Ascend 950DT, Atlas A3 training products/Atlas A3 inference products and Atlas A2 training products/Atlas A2 inference products, the default stream can be used (that is, the stream parameter can be set to NULL).

For Atlas 200I/500 A2 inference products, Atlas inference products, and Atlas training products, the default stream cannot be used (that is, the stream parameter cannot be set to NULL).