pub struct MultiGpuConfig {
pub backends: Backends,
pub min_devices: usize,
pub max_devices: usize,
pub auto_load_balance: bool,
pub enable_p2p: bool,
}Expand description
Multi-GPU configuration.
Fields§
§backends: BackendsBackends to search for GPUs.
min_devices: usizeMinimum number of GPUs required.
max_devices: usizeMaximum number of GPUs to use.
auto_load_balance: boolEnable automatic load balancing.
enable_p2p: boolEnable peer-to-peer transfers (if supported).
Trait Implementations§
Source§impl Clone for MultiGpuConfig
impl Clone for MultiGpuConfig
Source§fn clone(&self) -> MultiGpuConfig
fn clone(&self) -> MultiGpuConfig
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 MultiGpuConfig
impl Debug for MultiGpuConfig
Auto Trait Implementations§
impl Freeze for MultiGpuConfig
impl RefUnwindSafe for MultiGpuConfig
impl Send for MultiGpuConfig
impl Sync for MultiGpuConfig
impl Unpin for MultiGpuConfig
impl UnsafeUnpin for MultiGpuConfig
impl UnwindSafe for MultiGpuConfig
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