aclmdlRICaptureGetInfo

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 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.