pub struct MultiGpuBuilder { /* private fields */ }Expand description
Builder for multi-GPU coordinator.
Implementations§
Source§impl MultiGpuBuilder
impl MultiGpuBuilder
Sourcepub fn load_balancing(self, strategy: LoadBalancingStrategy) -> Self
pub fn load_balancing(self, strategy: LoadBalancingStrategy) -> Self
Set load balancing strategy.
Sourcepub fn auto_select_device(self, enable: bool) -> Self
pub fn auto_select_device(self, enable: bool) -> Self
Set auto device selection.
Sourcepub fn max_kernels_per_device(self, max: usize) -> Self
pub fn max_kernels_per_device(self, max: usize) -> Self
Set max kernels per device.
Sourcepub fn enable_p2p(self, enable: bool) -> Self
pub fn enable_p2p(self, enable: bool) -> Self
Enable P2P transfers.
Sourcepub fn preferred_devices(self, devices: Vec<usize>) -> Self
pub fn preferred_devices(self, devices: Vec<usize>) -> Self
Set preferred devices.
Sourcepub fn build(self) -> Arc<MultiGpuCoordinator>
pub fn build(self) -> Arc<MultiGpuCoordinator>
Build the coordinator.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MultiGpuBuilder
impl RefUnwindSafe for MultiGpuBuilder
impl Send for MultiGpuBuilder
impl Sync for MultiGpuBuilder
impl Unpin for MultiGpuBuilder
impl UnwindSafe for MultiGpuBuilder
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§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
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§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.