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

Returns Ok(true) if the stream has finished processing all queued tasks.

Wait for a 4-byte value in a specific location to compare to value by mode.

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. The callback is not guaranteed to be called if the stream errors out. Also note that it is erroneous in libcuda to make any calls to libcuda from this callback. The callback is called from a CUDA internal thread, however this is an implementation detail of libcuda and not guaranteed.

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. If the argument count is wrong, CUDA will generally throw an error. If your parameters is accurate to the kernel definition, then this function is otherwise safe.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.