pub struct TopologyInfo { /* private fields */ }Expand description
MPI topology information gathered across all ranks in a communicator.
This is produced by a collective operation (Communicator::topology) and
contains the rank-to-host mapping, MPI library metadata, and optional SLURM
job information.
§Display
The Display implementation produces a human-readable topology report:
================ MPI Topology ================
Library: Open MPI v4.1.6
Standard: MPI 4.0
Threads: Funneled
Processes: 8 across 2 nodes
compute-01: ranks 0, 1, 2, 3 (4 processes)
compute-02: ranks 4, 5, 6, 7 (4 processes)
==============================================Implementations§
Source§impl TopologyInfo
impl TopologyInfo
Sourcepub fn hosts(&self) -> &[HostEntry]
pub fn hosts(&self) -> &[HostEntry]
Hosts and their assigned ranks, ordered by first rank on each host.
Sourcepub fn library_version(&self) -> &str
pub fn library_version(&self) -> &str
MPI library version string (implementation-specific).
Sourcepub fn standard_version(&self) -> &str
pub fn standard_version(&self) -> &str
MPI standard version string.
Sourcepub fn thread_level(&self) -> ThreadLevel
pub fn thread_level(&self) -> ThreadLevel
Thread support level granted by the MPI runtime.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TopologyInfo
impl RefUnwindSafe for TopologyInfo
impl Send for TopologyInfo
impl Sync for TopologyInfo
impl Unpin for TopologyInfo
impl UnsafeUnpin for TopologyInfo
impl UnwindSafe for TopologyInfo
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