aclrtStreamQuery

Description

Queries the execution status of all tasks on a specified stream.

Restrictions

This API can be used in the following scenarios:

  • The Atlas 200/300/500 Inference Product uses this API to query the execution status of a task.

Prototype

aclError aclrtStreamQuery(aclrtStream stream, aclrtStreamStatus *status)

Parameters

Parameter

Input/Output

Description

stream

Input

Stream pointer.

status

Output

Task status on a stream.

Returns

The value 0 indicates success, and other values indicate failure. For details, see aclError.