Data Structures#
Detailed Description#
Classes#
Name |
Description |
|---|---|
|
AscendEvent to synchronize between different streams. View details |
Class that enables getting aclrtAscendEvent from cann::AscendEvent. View details |
|
|
|
|
In AscendCL Stream(AscendStream) is a task queue. Stream is used to manage the parallelism of tasks. The tasks inside a Stream are executed sequentially, that is, the Stream executes sequentially according to the sent tasks; the tasks in different Streams are executed in parallel. View details |
Class that enables getting aclrtAscendStream from cann::AscendStream. View details |
Function Documentation#
wrapStream()#
AscendStream cv::cann::wrapStream(size_t AscendStreamAddress)
#include <opencv2/cann.hpp>
Bindings overload to create a Stream object from the address stored in an existing CANN Runtime API stream pointer (aclrtStream).
Note
Overload for generation of bindings only, not exported or intended for use internally fro C++.
Parameters
AscendStreamAddress— Memory address stored in a CANN Runtime API stream pointer (aclrtStream). The created Stream object does not perform any allocation or deallocation and simply wraps existing raw CANN Runtime API stream pointer.