Trait parenchyma::Framework
[−]
[src]
pub trait Framework: 'static + Debug { const FRAMEWORK_NAME: &'static str; fn available_hardware(&self) -> Vec<Hardware>; }
A trait implemented for all frameworks. Framework
s contain a list of all available devices as
well as other objects specific to the implementor.
The default framework is simply the host CPU for common computation. To make use of other devices such as GPUs, you may choose a GPGPU framework (such as OpenCL or CUDA) to access the processing capabilities of the device(s).
Associated Constants
const FRAMEWORK_NAME: &'static str
The name of the framework.
This associated constant is mainly used for the purposes of debugging and reporting errors.
issue#29924: remove Framework::name
Required Methods
fn available_hardware(&self) -> Vec<Hardware>
Returns the cached and available hardware.