pub struct CuDevice {
pub device: CUdevice,
}Expand description
Cuda representation of the device.
Fields§
§device: CUdeviceImplementations§
Source§impl CuDevice
impl CuDevice
Sourcepub fn get_attribute(&self, attr: CUdevice_attribute) -> Result<c_int, Error>
pub fn get_attribute(&self, attr: CUdevice_attribute) -> Result<c_int, Error>
Get attributes of the device.
Sourcepub fn get_total_mem(&self) -> Result<usize, Error>
pub fn get_total_mem(&self) -> Result<usize, Error>
Get total mem of the device.
Trait Implementations§
impl Copy for CuDevice
Auto Trait Implementations§
impl Freeze for CuDevice
impl RefUnwindSafe for CuDevice
impl Send for CuDevice
impl Sync for CuDevice
impl Unpin for CuDevice
impl UnwindSafe for CuDevice
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