OpenCV
4.10.0-dev
Open Source Computer Vision
|
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. More...
#include <opencv2/cann.hpp>
Classes | |
class | Impl |
Warpper of CANN streams. More... | |
Public Member Functions | |
AscendStream () | |
void | addTensorHolder (const std::shared_ptr< uchar > &holder) |
void | waitAscendEvent (const cv::cann::AscendEvent &event) |
blocks the current CPU thread until event trigger. | |
void | waitForCompletion () |
blocks the current CPU thread until all operations in the stream are complete. | |
Static Public Member Functions | |
static AscendStream & | Null () |
return default AscendStream object for default Acl stream. | |
Friends | |
class | AscendStreamAccessor |
class | DefaultDeviceInitializer |
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.
All Non-blocking functions should pass parameter stream, These function returns immediately after the task is submitted. Caller should wait stream until completion.
Blocking functions implicityly use the default stream, and synchronize stream before function return.
cv::cann::AscendStream::AscendStream | ( | ) |
void cv::cann::AscendStream::addTensorHolder | ( | const std::shared_ptr< uchar > & | holder | ) |
|
static |
return default AscendStream object for default Acl stream.
void cv::cann::AscendStream::waitAscendEvent | ( | const cv::cann::AscendEvent & | event | ) |
blocks the current CPU thread until event trigger.
void cv::cann::AscendStream::waitForCompletion | ( | ) |
blocks the current CPU thread until all operations in the stream are complete.
|
friend |
|
friend |