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

The unique ID of the hardware.

Framework marker

The type of compute device, such as a CPU or a GPU.

The name.

The number of compute units.

A compute device usually has multiple compute units.

Trait Implementations

impl Clone for Hardware
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Hardware
[src]

Formats the value using the given formatter.