Struct collenchyma::frameworks::native::hardware::Hardware [] [src]

pub struct Hardware {
    // some fields omitted
}

Defines the host CPU Hardware.

Can later be transformed into a Collenchyma hardware.

Methods

impl Hardware

fn new(id: isize) -> Hardware

Initializes a new OpenCL hardware.

Trait Implementations

impl Default for Hardware

fn default() -> Self

impl IHardware for Hardware

fn id(&self) -> isize

fn name(&self) -> Option<String>

fn set_name(&mut self, name: Option<String>) -> Self

fn hardware_type(&self) -> Option<HardwareType>

fn set_hardware_type(&mut self, hardware_type: Option<HardwareType>) -> Self

fn compute_units(&self) -> Option<isize>

fn set_compute_units(&mut self, compute_units: Option<isize>) -> Self

fn build(self) -> Hardware

Derived Implementations

impl Clone for Hardware

fn clone(&self) -> Hardware

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for Hardware

fn fmt(&self, __arg_0: &mut Formatter) -> Result