pub struct Cuda;Implementations§
Source§impl Cuda
impl Cuda
Sourcepub fn list_devices() -> CudaResult<Vec<Device>>
pub fn list_devices() -> CudaResult<Vec<Device>>
List all CUDA-enabled devices on the host
Source§impl Cuda
impl Cuda
Sourcepub fn init() -> CudaResult<()>
pub fn init() -> CudaResult<()>
Initialize the CUDA library. Can be called repeatedly at no cost.
Source§impl Cuda
impl Cuda
Sourcepub fn version() -> CudaResult<CudaVersion>
pub fn version() -> CudaResult<CudaVersion>
Gets the local driver version (not to be confused with device compute capability)
Auto Trait Implementations§
impl Freeze for Cuda
impl RefUnwindSafe for Cuda
impl Send for Cuda
impl Sync for Cuda
impl Unpin for Cuda
impl UnwindSafe for Cuda
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