pub struct CudaConfig {
pub device_id: u32,
pub enable_unified_memory: bool,
pub enable_memory_pools: bool,
pub enable_async_ops: bool,
pub pool_growth_size: usize,
pub enable_mapped_memory: bool,
pub enable_cuda_graphs: bool,
pub enable_cooperative_groups: bool,
pub max_streams: u32,
}Expand description
CUDA backend configuration
Fields§
§device_id: u32Device ID to use
enable_unified_memory: boolEnable unified memory
enable_memory_pools: boolEnable memory pools
enable_async_ops: boolEnable async memory operations
pool_growth_size: usizeMemory pool growth size
enable_mapped_memory: boolEnable memory mapped host memory
enable_cuda_graphs: boolEnable CUDA graphs for memory ops
enable_cooperative_groups: boolEnable cooperative groups
max_streams: u32Maximum number of streams
Trait Implementations§
Source§impl Clone for CudaConfig
impl Clone for CudaConfig
Source§fn clone(&self) -> CudaConfig
fn clone(&self) -> CudaConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CudaConfig
impl Debug for CudaConfig
Auto Trait Implementations§
impl Freeze for CudaConfig
impl RefUnwindSafe for CudaConfig
impl Send for CudaConfig
impl Sync for CudaConfig
impl Unpin for CudaConfig
impl UnsafeUnpin for CudaConfig
impl UnwindSafe for CudaConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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