pub struct Config { /* private fields */ }Expand description
A JACCL group’s configuration, as MLX’s jaccl::Config.
Implementations§
Source§impl Config
impl Config
Sourcepub fn new(rank: usize, devices: Vec<Vec<Vec<String>>>) -> Result<Self>
pub fn new(rank: usize, devices: Vec<Vec<Vec<String>>>) -> Result<Self>
Rank rank of the group the device matrix devices describes (size rows of size
entries).
Sourcepub fn coordinator(self, address: impl Into<String>) -> Self
pub fn coordinator(self, address: impl Into<String>) -> Self
The coordinator’s host:port (rank 0 listens on it during initialisation).
Sourcepub fn prefer_ring(self, prefer: bool) -> Self
pub fn prefer_ring(self, prefer: bool) -> Self
Prefers the ring topology when the cabling allows both.
Sourcepub fn from_env() -> Result<Option<Self>>
pub fn from_env() -> Result<Option<Self>>
The configuration from MLX’s environment, None when it is not set: JACCL_RANK or
MLX_RANK, JACCL_IBV_DEVICES or MLX_IBV_DEVICES (the device file),
JACCL_COORDINATOR or MLX_JACCL_COORDINATOR, and JACCL_RING or MLX_JACCL_RING
(set: prefer the ring), as mlx.launch --backend jaccl writes them.
Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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