Struct parenchyma::Hardware
[−]
[src]
pub struct Hardware { pub id: usize, pub framework: &'static str, pub kind: HardwareKind, pub name: String, pub compute_units: usize, }
Hardware can be GPUs, multi-core CPUs or DSPs, Cell/B.E. processor or whatever else
is supported by the provided framework. The struct holds all important information about
the hardware. To execute code on hardware, turn hardware into a [Device
].
[Device
]: [device]: ./struct.Device.html
Fields
id: usize
The unique ID of the hardware.
framework: &'static str
Framework marker
kind: HardwareKind
The type of compute device, such as a CPU or a GPU.
name: String
The name.
compute_units: usize
The number of compute units.
A compute device usually has multiple compute units.
Trait Implementations
impl Clone for Hardware
[src]
fn clone(&self) -> Hardware
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more