arXiv Science⌕ Search

arXiv subjects

Xun Nie

Publications and source records attributed to Xun Nie.

2 recordsLinked to original sources

Minimizing Optical Circuit Reconfigurations for Concurrent Collectives

Optical circuit switches (OCSes) provide high-bandwidth point-to-point circuits in GPU clusters, but each optical port attaches to only one peer at a time, and reconfiguring a connection interrupts transmission. In large-model training, these ports are shared by many communication domains, each running its own collective instance, called a CCL kernel; often, several of these kernels execute the same collective at the same time. Because each step of the collective can reach a different peer, domains advancing through the steps in the same order may require a reconfiguration at every step. We introduce the mega CCL kernel to schedule these kernels jointly. When a collective permits its steps to be reordered, different domains can take different legal steps in the same round, letting consecutive rounds share the same circuits and reducing the number of reconfigurations. Because the kernels are interchangeable, we need not decide the steps of every kernel separately. Instead, in each round we count how many kernels run each pattern, and then use bipartite matching to turn those counts into a concrete schedule for each kernel. We call this the count model, as opposed to the direct formulation that decides each kernel separately, and prove that the two give the same configuration sequences and the same optimum while the count model is substantially easier to solve. On a fully loaded 64-supernode, 64-domain scheduling instance, joint scheduling cuts pairwise-AlltoAll reconfigurations from 62 to 3 and HD AllReduce from 10 to 2. In synthetic training replays parameterized by eight real models, it reduces iteration time by up to about 34%; on a 64-GPU test case, the count model solves over six orders of magnitude faster than the direct formulation.

cs.NI↗

On the Design of Physical Topology in OCS-based Clusters

Optical Circuit Switches (OCSes) are increasingly deployed in data center networks and AI clusters. By wiring the electrical ports of GPUs and electrical switches to the OCS ports, the physical interconnection pattern defines a \emph{physical topology}. \textbf{Topology Engineering (ToE)} seeks an OCS configuration that optimizes a traffic objective given traffic demands and physical constraints, but solving this joint problem is computationally expensive. A common approach is to \emph{decouple} the problem into two steps: first, compute a \emph{logical topology} that satisfies the traffic demands without considering the physical topology constraints and then map it onto the physical topology to obtain the OCS configuration. This, however, introduces a quality loss issue: the resulting logical topology sometimes cannot be realized exactly under the given physical topology. To address this problem, we show that it stems from a property missing in the physical topology. We propose \textbf{Decoupling Optimality} and the necessary and sufficient conditions under which a decoupled method will not lose quality. Examining existing physical topologies against these conditions reveals that they either fail them, or satisfy them at the cost of cluster scale or deployment generality. Our proposed \textbf{Cross Wiring} meets all the conditions, without sacrificing cluster scale or adding devices. On a 128-NPU testbed, the lack of \emph{Decoupling Optimality} increases training iteration time by up to 39.5\%, and a microbenchmark validates the importance of \emph{Decoupling Optimality} in both solution quality and solving speed. A testbed built from two MEMS OCSes validates the engineering feasibility of Cross Wiring.

cs.NI↗