Trait popcorn::hardware::Hardware [] [src]

pub trait Hardware {
    fn name(&self) -> &str;
    fn hardware_type(&self) -> HardwareType;
    fn compute_units(&self) -> usize;
}

Specifies Hardware behavior accross frameworks.

Required Methods

Returns the name of the Hardware

Returns the device_type of the Hardware

Returns the compute_units of the Hardware

Implementors