Struct cuda_oxide::stream::Stream [−][src]
pub struct Stream<'a> { /* fields omitted */ }Expand description
A stream of asynchronous operations operating in a Context
Implementations
Creates a new stream for a handle
Drives all pending tasks on the stream to completion
pub fn wait_32<'b>(
&'b mut self,
addr: &'b DevicePtr<'a>,
value: u32,
mode: WaitValueMode,
flush: bool
) -> CudaResult<()>[src]
pub fn wait_32<'b>(
&'b mut self,
addr: &'b DevicePtr<'a>,
value: u32,
mode: WaitValueMode,
flush: bool
) -> CudaResult<()>[src]Wait for a 4-byte value in a specific location to compare to value by mode.
pub fn wait_64<'b>(
&mut self,
addr: &'b DevicePtr<'a>,
value: u64,
mode: WaitValueMode,
flush: bool
) -> CudaResult<()>[src]
pub fn wait_64<'b>(
&mut self,
addr: &'b DevicePtr<'a>,
value: u64,
mode: WaitValueMode,
flush: bool
) -> CudaResult<()>[src]Wait for a 8-byte value in a specific location to compare to value by mode.
Writes a 4-byte value to device memory asynchronously
Writes a 8-byte value to device memory asynchronously
Calls a callback closure function callback once all prior tasks in the Stream have been driven to completion.
Note that it is a memory leak to drop the stream before this callback is called
Also note that it is undefined behavior in libcuda to make any calls to libcuda from this callback.
Launch a CUDA kernel on this Stream with the given grid_dim grid dimensions, block_dim block dimensions, shared_mem_size allocated shared memory pool, and parameters kernel parameters.
It is undefined behavior to pass in parameters that do not conform to the passes CUDA kernel.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Stream<'a>impl<'a> UnwindSafe for Stream<'a>