aclrtDestroyStreamForce

Description

Destroys a stream created by the aclrtCreateStream or aclrtCreateStreamWithConfig call. If an unfinished task exists in the stream, the stream is forcibly destroyed without waiting for the task to complete.

For the Atlas 200/300/500 Inference Product, this API functions equivalently to aclrtDestroyStream.

Restrictions

When calling this API to destroy a specified stream, ensure that the stream is in the current context.

Prototype

aclError aclrtDestroyStreamForce(aclrtStream stream)

Parameters

Parameter

Input/Output

Description

stream

Input

Stream to destroy.

Returns

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