pub struct CudaMemoryManager { /* private fields */ }Expand description
CUDA memory management for sparse matrices
Implementations§
Source§impl CudaMemoryManager
impl CudaMemoryManager
Sourcepub fn allocate_sparse_matrix<T>(
&mut self,
_matrix: &CsrArray<T>,
_device: &GpuDevice,
) -> Result<CudaMatrixBuffers<T>, GpuError>
pub fn allocate_sparse_matrix<T>( &mut self, _matrix: &CsrArray<T>, _device: &GpuDevice, ) -> Result<CudaMatrixBuffers<T>, GpuError>
Allocate GPU memory for sparse matrix data
Sourcepub fn allocate_optimized<T>(
&mut self,
_data: &[T],
_device: &GpuDevice,
_access_pattern: MemoryAccessPattern,
) -> Result<GpuBuffer<T>, GpuError>
pub fn allocate_optimized<T>( &mut self, _data: &[T], _device: &GpuDevice, _access_pattern: MemoryAccessPattern, ) -> Result<GpuBuffer<T>, GpuError>
Allocate GPU memory with optimal memory layout
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CudaMemoryManager
impl RefUnwindSafe for CudaMemoryManager
impl Send for CudaMemoryManager
impl Sync for CudaMemoryManager
impl Unpin for CudaMemoryManager
impl UnwindSafe for CudaMemoryManager
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more