View Source Evision.CUDA.Stream (Evision v0.1.9)
Link to this section Summary
cv.cuda
Python prototype (for reference):
Variant 1:
creates a new Stream using the cudaFlags argument to determine the behaviors of the stream
Python prototype (for reference):
Adds a callback to be called on the host after all currently enqueued items in the stream have completed.
Returns true if the current stream queue is finished. Otherwise, it returns false.
Makes a compute stream wait on an event.
Blocks the current CPU thread until all operations in the stream are complete.
Functions
Raising version of cuda_Stream/0
.
Raising version of cuda_Stream/1
.
Raising version of cudaPtr/1
.
Raising version of queryIfComplete/1
.
Raising version of waitEvent/2
.
Raising version of waitForCompletion/1
.
Link to this section cv.cuda
Python prototype (for reference):
Stream() -> <cuda_Stream object>
Variant 1:
creates a new Stream using the cudaFlags argument to determine the behaviors of the stream
Positional Arguments
- cudaFlags:
size_t
Note: The cudaFlags parameter is passed to the underlying api cudaStreamCreateWithFlags() and supports the same parameter values.
// creates an OpenCV cuda::Stream that manages an asynchronous, non-blocking,
// non-default CUDA stream
cv::cuda::Stream cvStream(cudaStreamNonBlocking);
Python prototype (for reference):
Stream(cudaFlags) -> <cuda_Stream object>
Variant 2:
Positional Arguments
- allocator:
Ptr<GpuMat::Allocator>
Python prototype (for reference):
Stream(allocator) -> <cuda_Stream object>
Python prototype (for reference):
cudaPtr() -> retval
Adds a callback to be called on the host after all currently enqueued items in the stream have completed.
Note: Callbacks must not make any CUDA API calls. Callbacks must not perform any synchronization that may depend on outstanding device work or other callbacks that are not mandated to run earlier. Callbacks without a mandated order (in independent streams) execute in undefined order and may be serialized.
Python prototype (for reference):
Null() -> retval
Returns true if the current stream queue is finished. Otherwise, it returns false.
Python prototype (for reference):
queryIfComplete() -> retval
Makes a compute stream wait on an event.
Positional Arguments
- event:
Event
Python prototype (for reference):
waitEvent(event) -> None
Blocks the current CPU thread until all operations in the stream are complete.
Python prototype (for reference):
waitForCompletion() -> None
Link to this section Functions
Raising version of cuda_Stream/0
.
Raising version of cuda_Stream/1
.
Raising version of cudaPtr/1
.
Raising version of null/0
.
Raising version of queryIfComplete/1
.
Raising version of waitEvent/2
.
Raising version of waitForCompletion/1
.