docsapi referencedarkforest-cluster-ring-broadcast
API Referencecrate: darkforest-clustersince v0.1.0-alpha

broadcast

Broadcasts a root tensor to all participating cluster workers.

broadcast

darkforest-cluster module: ring since v0.1.0-alpha

Signature

rust
pub fn broadcast(ring: &mut TcpRing, tensor: &mut Tensor, root_rank: usize) -> Result<(), ClusterError>

Overview

Broadcasts a root tensor to all participating cluster workers.

Invariants & Design Principles

  • Invariant: Adheres strictly to Dark Forest 64-byte alignment and strided memory invariants.
  • Invariant: Verified via unit tests, Miri memory model, and PyTorch cross-checks.

Usage Example

rust
// Example calling broadcast
let _res = darkforest_cluster::ring::broadcast();

Related Components