Struct coaster::frameworks::cuda::Cuda
source · pub struct Cuda { /* private fields */ }
Expand description
Provides the Cuda Framework.
Implementations§
source§impl Cuda
impl Cuda
sourcepub fn initialise_cublas(&mut self) -> Result<(), Error>
pub fn initialise_cublas(&mut self) -> Result<(), Error>
Create a handle to CUBLAS and assign it to CUDA Object
Creating a handle when the CUDA object is created initially will cause CUDA_ERROR_LAUNCH_FAILED when an attempt is made to use the pointer. This can also affect global initialisation of the pointer, and so the initialise must run after the CUDA Driver is fully initialised, or (theoretically) a call is done to CUDA Free or DeviceSynchronise.
sourcepub fn initialise_cudnn(&mut self) -> Result<(), Error>
pub fn initialise_cudnn(&mut self) -> Result<(), Error>
Create a handle to CUDNN and assign it to CUDA Object
Trait Implementations§
source§impl IFramework for Cuda
impl IFramework for Cuda
source§fn new_device(&self, hardwares: &[Device]) -> Result<Self::D, Error>
fn new_device(&self, hardwares: &[Device]) -> Result<Self::D, Error>
Creates a new Cuda context for computation.
Cuda’s context differs from OpenCL’s context. Multi device support works different in Cuda. This function currently suppports only one device, but should be a wrapper for multi device support.
Auto Trait Implementations§
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