pub struct OneApiConfig {
pub device_id: u32,
pub enable_usm: bool,
pub enable_device_usm: bool,
pub enable_host_usm: bool,
pub enable_shared_usm: bool,
pub enable_memory_pools: bool,
pub enable_async_ops: bool,
pub pool_growth_size: usize,
pub max_queues: u32,
pub enable_profiling: bool,
pub enable_sub_groups: bool,
}Expand description
OneAPI backend configuration
Fields§
§device_id: u32Device ID to use
enable_usm: boolEnable unified shared memory (USM)
enable_device_usm: boolEnable device-specific USM
enable_host_usm: boolEnable host USM
Enable shared USM
enable_memory_pools: boolEnable memory pools
enable_async_ops: boolEnable async memory operations
pool_growth_size: usizeMemory pool growth size
max_queues: u32Maximum number of queues
enable_profiling: boolEnable profiling
enable_sub_groups: boolEnable sub-groups
Trait Implementations§
Source§impl Clone for OneApiConfig
impl Clone for OneApiConfig
Source§fn clone(&self) -> OneApiConfig
fn clone(&self) -> OneApiConfig
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 OneApiConfig
impl Debug for OneApiConfig
Auto Trait Implementations§
impl Freeze for OneApiConfig
impl RefUnwindSafe for OneApiConfig
impl Send for OneApiConfig
impl Sync for OneApiConfig
impl Unpin for OneApiConfig
impl UnsafeUnpin for OneApiConfig
impl UnwindSafe for OneApiConfig
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