pub struct AccelerationConfig {
pub enable_simd: bool,
pub enable_parallel: bool,
pub enable_mixed_precision: bool,
pub enable_gpu: bool,
pub gpu_device_id: i32,
pub gpu_memory_limit: Option<usize>,
pub num_threads: Option<usize>,
pub memory_alignment: usize,
}Expand description
Configuration for hardware acceleration features
Fields§
§enable_simd: boolEnable SIMD optimizations
enable_parallel: boolEnable parallel processing
enable_mixed_precision: boolEnable mixed precision arithmetic
enable_gpu: boolEnable GPU acceleration
gpu_device_id: i32GPU device ID to use
gpu_memory_limit: Option<usize>GPU memory limit in bytes
num_threads: Option<usize>Number of threads for parallel operations
memory_alignment: usizeMemory alignment for SIMD operations
Trait Implementations§
Source§impl Clone for AccelerationConfig
impl Clone for AccelerationConfig
Source§fn clone(&self) -> AccelerationConfig
fn clone(&self) -> AccelerationConfig
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 AccelerationConfig
impl Debug for AccelerationConfig
Auto Trait Implementations§
impl Freeze for AccelerationConfig
impl RefUnwindSafe for AccelerationConfig
impl Send for AccelerationConfig
impl Sync for AccelerationConfig
impl Unpin for AccelerationConfig
impl UnwindSafe for AccelerationConfig
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