pub struct RocmConfig {
pub device_id: u32,
pub enable_coarse_memory: bool,
pub enable_fine_memory: bool,
pub enable_memory_pools: bool,
pub enable_async_ops: bool,
pub pool_growth_size: usize,
pub enable_host_visible: bool,
pub enable_device_coherent: bool,
pub max_streams: u32,
pub enable_profiling: bool,
}Expand description
ROCm backend configuration
Fields§
§device_id: u32Device ID to use
enable_coarse_memory: boolEnable coarse-grained memory
enable_fine_memory: boolEnable fine-grained memory
enable_memory_pools: boolEnable memory pools
enable_async_ops: boolEnable async memory operations
pool_growth_size: usizeMemory pool growth size
enable_host_visible: boolEnable host-visible device memory
enable_device_coherent: boolEnable device coherent memory
max_streams: u32Maximum number of streams
enable_profiling: boolEnable GPU memory profiling
Trait Implementations§
Source§impl Clone for RocmConfig
impl Clone for RocmConfig
Source§fn clone(&self) -> RocmConfig
fn clone(&self) -> RocmConfig
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 RocmConfig
impl Debug for RocmConfig
Auto Trait Implementations§
impl Freeze for RocmConfig
impl RefUnwindSafe for RocmConfig
impl Send for RocmConfig
impl Sync for RocmConfig
impl Unpin for RocmConfig
impl UnsafeUnpin for RocmConfig
impl UnwindSafe for RocmConfig
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