aclrtSetLabel

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Description

Sets a label on a stream.

Prototype

1
aclError aclrtSetLabel(aclrtLabel label, aclrtStream stream)

Parameters

Parameter

Input/Output

Description

label

Input

Label. For details about the type definition, see aclrtLabel.

Use a label created by calling the aclrtCreateLabel API as the input.

stream

Input

Stream on which a label needs to be set. For details about the type definition, see aclrtStream.

Only a stream bound to a model runtime instance by calling the aclmdlRIBindStream API is supported.

Returns

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