pub struct MultiGpuConfig {
pub load_balancing: LoadBalancingStrategy,
pub auto_select_device: bool,
pub max_kernels_per_device: usize,
pub enable_p2p: bool,
pub preferred_devices: Vec<usize>,
}Expand description
Configuration for multi-GPU coordination.
Fields§
§load_balancing: LoadBalancingStrategyLoad balancing strategy.
auto_select_device: boolEnable automatic device selection.
max_kernels_per_device: usizeMaximum kernels per device.
enable_p2p: boolEnable peer-to-peer transfers when available.
preferred_devices: Vec<usize>Preferred devices (by index).
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§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 UnwindSafe for MultiGpuConfig
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D,
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.