aclmdlRICaptureGetInfo

Note: This API is for trial use and may be changed in later versions. It is not available in commercial products.

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

Obtains the capture information of a stream, including the capture status and model running instance.

Prototype

1
aclError aclmdlRICaptureGetInfo(aclrtStream stream, aclmdlRICaptureStatus *status, aclmdlRI *modelRI)

Parameters

Parameter

Input/Output

Description

stream

Input

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

status

Output

Capture status of tasks on the stream. For details about the type definition, see aclmdlRICaptureStatus.

modelRI

Output

Running instance of the model that is used to temporarily store the captured tasks. For details about the type definition, see aclmdlRI.

If the stream specified by this API is not in the capture state, the value of modelRI returned is invalid.

Returns

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