pub struct OpenClEncoder { /* private fields */ }
Expand description

OpenCL codec

Implementations

Create new OpenCL codec instance for batch encoding on GPU.

Batch information can be provided upfront to determine load distribution and do necessary memory allocation.

Sequentially encodes a batch of pieces using OpenCL.

NOTE: This encode function works on batches of pieces and IVs.

For smaller batches or encoding of individual pieces use CPU implementation.

Cleans up the resources allocated in the initialization of the encode kernel.

Prefer this over drop() because drop() will panic in case of error.

NOTE: In case error is returned, memory used for kernel initialization might be leaked.

Trait Implementations

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.