pub struct NcclConfig {
pub blocking: bool,
pub cga_cluster_size: u8,
pub min_ctas: u8,
pub max_ctas: u8,
pub net_name: Option<String>,
pub split_share: bool,
}
Expand description
Rust version of ncclConfig_t. See nccl documentation for what each field means: https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/api/types.html#ncclconfig-t
Note that we don’t validate field values; we rely on nccl to do that.
Fields§
§blocking: bool
§cga_cluster_size: u8
§min_ctas: u8
§max_ctas: u8
§net_name: Option<String>
Trait Implementations§
Source§impl Clone for NcclConfig
impl Clone for NcclConfig
Source§fn clone(&self) -> NcclConfig
fn clone(&self) -> NcclConfig
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 NcclConfig
impl Debug for NcclConfig
Source§impl Default for NcclConfig
impl Default for NcclConfig
Source§impl<'de> Deserialize<'de> for NcclConfig
impl<'de> Deserialize<'de> for NcclConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<NcclConfig> for ncclConfig_t
impl From<NcclConfig> for ncclConfig_t
Source§fn from(config: NcclConfig) -> Self
fn from(config: NcclConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NcclConfig
impl RefUnwindSafe for NcclConfig
impl Send for NcclConfig
impl Sync for NcclConfig
impl Unpin for NcclConfig
impl UnwindSafe for NcclConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<A, M> Handler<IndexedErasedUnbound<M>> for A
impl<A, M> Handler<IndexedErasedUnbound<M>> for A
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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