pub struct Cuda<'a> { /* private fields */ }Expand description
The CUDA Context: entry point for listing/opening devices.
Implementations§
Trait Implementations§
Source§impl<'a> Context<'a> for Cuda<'a>
impl<'a> Context<'a> for Cuda<'a>
Source§type Device = CudaDevice<'a>
type Device = CudaDevice<'a>
The device type this context opens.
Source§type DeviceInfo = CudaDeviceInfo
type DeviceInfo = CudaDeviceInfo
The device-info type returned by
Context::list_devices.Source§fn list_devices(&self) -> Result<Vec<Self::DeviceInfo>>
fn list_devices(&self) -> Result<Vec<Self::DeviceInfo>>
Lists all available devices.
Source§fn device(
&self,
id: &<Self::DeviceInfo as DeviceInfo>::Id,
) -> Result<Self::Device>
fn device( &self, id: &<Self::DeviceInfo as DeviceInfo>::Id, ) -> Result<Self::Device>
Opens the device with the given ID.
Auto Trait Implementations§
impl<'a> Freeze for Cuda<'a>
impl<'a> RefUnwindSafe for Cuda<'a>
impl<'a> Send for Cuda<'a>
impl<'a> Sync for Cuda<'a>
impl<'a> Unpin for Cuda<'a>
impl<'a> UnsafeUnpin for Cuda<'a>
impl<'a> UnwindSafe for Cuda<'a>
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