pub struct MultiGpuCoordinator { /* private fields */ }Expand description
Multi-GPU coordinator for distributed computing
Implementations§
Source§impl MultiGpuCoordinator
impl MultiGpuCoordinator
Sourcepub fn init_all_gpus(&mut self) -> Result<(), GpuError>
pub fn init_all_gpus(&mut self) -> Result<(), GpuError>
Initialize all available GPUs
Sourcepub fn get_optimal_assignment(
&self,
workload: &DistributedWorkload,
) -> Vec<GpuAssignment>
pub fn get_optimal_assignment( &self, workload: &DistributedWorkload, ) -> Vec<GpuAssignment>
Get optimal GPU assignment for workload
Sourcepub fn execute_distributed(
&self,
operation: &DistributedOperation,
) -> Result<DistributedResult, GpuError>
pub fn execute_distributed( &self, operation: &DistributedOperation, ) -> Result<DistributedResult, GpuError>
Execute distributed operation across multiple GPUs
Sourcepub fn synchronize_all(&self) -> Result<(), GpuError>
pub fn synchronize_all(&self) -> Result<(), GpuError>
Synchronize all GPUs
Sourcepub fn get_cluster_memory_stats(&self) -> ClusterMemoryStats
pub fn get_cluster_memory_stats(&self) -> ClusterMemoryStats
Get cluster-wide memory statistics
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MultiGpuCoordinator
impl RefUnwindSafe for MultiGpuCoordinator
impl Send for MultiGpuCoordinator
impl Sync for MultiGpuCoordinator
impl Unpin for MultiGpuCoordinator
impl UnwindSafe for MultiGpuCoordinator
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> 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