pub struct AdvancedGPUMemoryPool<F: IntegrateFloat + GpuDataType> { /* private fields */ }Expand description
Advanced-optimized GPU memory pool with advanced management
Implementations§
Source§impl<F: IntegrateFloat + GpuDataType> AdvancedGPUMemoryPool<F>
impl<F: IntegrateFloat + GpuDataType> AdvancedGPUMemoryPool<F>
Sourcepub fn new() -> IntegrateResult<Self>
pub fn new() -> IntegrateResult<Self>
Create a new advanced-optimized GPU memory pool
Sourcepub fn new_cpu_fallback() -> IntegrateResult<Self>
pub fn new_cpu_fallback() -> IntegrateResult<Self>
Create a new memory pool with CPU fallback mode
Sourcepub fn allocate_solution_vector(
&mut self,
size: usize,
) -> IntegrateResult<MemoryBlock<F>>
pub fn allocate_solution_vector( &mut self, size: usize, ) -> IntegrateResult<MemoryBlock<F>>
Allocate memory for solution vectors with optimization
Sourcepub fn allocate_derivative_vector(
&mut self,
size: usize,
) -> IntegrateResult<MemoryBlock<F>>
pub fn allocate_derivative_vector( &mut self, size: usize, ) -> IntegrateResult<MemoryBlock<F>>
Allocate memory for derivative vectors with optimization
Sourcepub fn allocate_temporary_vector(
&mut self,
size: usize,
) -> IntegrateResult<MemoryBlock<F>>
pub fn allocate_temporary_vector( &mut self, size: usize, ) -> IntegrateResult<MemoryBlock<F>>
Allocate memory for temporary vectors
Sourcepub fn deallocate(&mut self, blockid: usize) -> IntegrateResult<()>
pub fn deallocate(&mut self, blockid: usize) -> IntegrateResult<()>
Deallocate a memory block back to the pool
Auto Trait Implementations§
impl<F> Freeze for AdvancedGPUMemoryPool<F>
impl<F> RefUnwindSafe for AdvancedGPUMemoryPool<F>where
F: RefUnwindSafe,
impl<F> Send for AdvancedGPUMemoryPool<F>
impl<F> Sync for AdvancedGPUMemoryPool<F>
impl<F> Unpin for AdvancedGPUMemoryPool<F>where
F: Unpin,
impl<F> UnwindSafe for AdvancedGPUMemoryPool<F>where
F: UnwindSafe,
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