Struct coaster::frameworks::cuda::device::Device
[−]
[src]
pub struct Device { /* 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: c_int) -> Device
Initializes a new Cuda device from its C type.
fn id_c(&self) -> c_int
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 Debug for Device
[src]
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 Default for Device
[src]
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