Struct collenchyma::frameworks::cuda::device::Device [] [src]

pub struct Device {
    // some fields omitted
}

Defines a Cuda Device.

Methods

impl Device
[src]

fn from_isize(id: isize) -> Device

Initializes a new Cuda device.

fn from_c(id: CUdevice) -> Device

Initializes a new Cuda device from its C type.

fn id_c(&self) -> CUdevice

Returns the id as its C type.

fn load_name(&mut self) -> Self

Loads the name of the device via a foreign Cuda call.

fn load_device_type(&mut self) -> Self

Loads the device type via a foreign Cuda call.

fn load_compute_units(&mut self) -> Self

Loads the compute units of the device via a foreign Cuda call.

Trait Implementations

impl Clone for Device
[src]

fn clone(&self) -> Device

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

impl Debug for Device
[src]

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

Formats the value using the given formatter.

impl Default for Device
[src]

fn default() -> Self

Returns the "default value" for a type. Read more

impl IHardware for Device
[src]

fn id(&self) -> isize

Returns the ID of the Hardware

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

Returns the name of the Hardware

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

Defines the name of the Hardware

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

Returns the device_type of the Hardware

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

Defines the hardware_type of the Hardware

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

Returns the compute_units of the Hardware

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

Defines the compute_units of the Hardware

fn build(self) -> Device

Build an inmutable Hardware

impl PartialEq for Device
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.