Struct collenchyma::frameworks::native::device::Cpu [] [src]

pub struct Cpu {
    // some fields omitted
}

Defines the host CPU Hardware.

Can later be transformed into a Collenchyma hardware.

Methods

impl Cpu

fn new(hardwares: Vec<Hardware>) -> Cpu

Initializes a new OpenCL hardware.

Trait Implementations

impl IDevice for Cpu

type H = Hardware

type M = FlatBox

fn id(&self) -> &isize

fn hardwares(&self) -> &Vec<Hardware>

fn alloc_memory(&self, size: usize) -> Result<FlatBox, DeviceError>

fn sync_in(&self, source: &DeviceType, source_data: &MemoryType, dest_data: &mut FlatBox) -> Result<(), DeviceError>

impl PartialEq for Cpu

fn eq(&self, _: &Self) -> bool

1.0.0fn ne(&self, other: &Rhs) -> bool

impl Eq for Cpu

impl Hash for Cpu

fn hash<H: Hasher>(&self, state: &mut H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

Derived Implementations

impl Clone for Cpu

fn clone(&self) -> Cpu

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

impl Debug for Cpu

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