pub struct Device { /* private fields */ }
Expand description
Defines a Cuda Device.
Implementations§
source§impl Device
impl Device
sourcepub fn from_isize(id: isize) -> Device
pub fn from_isize(id: isize) -> Device
Initializes a new Cuda device.
sourcepub fn load_device_type(&mut self) -> Self
pub fn load_device_type(&mut self) -> Self
Loads the device type via a foreign Cuda call.
sourcepub fn load_compute_units(&mut self) -> Self
pub fn load_compute_units(&mut self) -> Self
Loads the compute units of the device via a foreign Cuda call.
Trait Implementations§
source§impl IHardware for Device
impl IHardware for Device
source§fn hardware_type(&self) -> Option<HardwareType>
fn hardware_type(&self) -> Option<HardwareType>
Returns the device_type of the Hardware
source§fn set_hardware_type(&mut self, hardware_type: Option<HardwareType>) -> Self
fn set_hardware_type(&mut self, hardware_type: Option<HardwareType>) -> Self
Defines the hardware_type of the Hardware
source§fn compute_units(&self) -> Option<isize>
fn compute_units(&self) -> Option<isize>
Returns the compute_units of the Hardware
source§fn set_compute_units(&mut self, compute_units: Option<isize>) -> Self
fn set_compute_units(&mut self, compute_units: Option<isize>) -> Self
Defines the compute_units of the Hardware
Auto Trait Implementations§
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more