Function: destroy_stream

C Prototype

aclError aclrtDestroyStream(aclrtStream stream)

Python Function

ret = acl.rt.destroy_stream(stream)

Function Usage

Destroys a stream created by the acl.rt.create_stream or acl.rt.create_stream_with_config call. If there are unfinished tasks on the stream, the stream is destroyed after the tasks are complete.

Input Description

stream: int, pointer address of the stream to be destroyed.

Return Value

ret: int, error code.

Restrictions

Reference

For details about the API call sequence and example, see Runtime Resource Allocation and Deallocation and Synchronous Wait.