Abstract
As high-performance computing (HPC) systems scale toward exascale, the probability of hardware failure increases significantly. Traditional fault-tolerance mechanisms like checkpoint-restart and replication often impose prohibitive overheads. This paper introduces 3D Coded SUMMA, a novel fault-tolerant algorithm for parallel matrix multiplication. By integrating MatDot error-correcting codes into the communication-avoiding 3D SUMMA framework, the algorithm achieves high resilience with approximately 50% less redundancy than replication and a minimal execution time overhead of only 5–10%.
Introduction
In the era of exascale computing, the vast number of components in supercomputers makes hardware failure a common occurrence. Standard mitigation strategies face significant scaling challenges:
- Checkpoint-Restart: High I/O overhead during state saving.
- Replication: Resource-intensive, often requiring double or triple the hardware.
- Algorithm-Based Fault Tolerance (ABFT): Often uses generic codes not optimized for specific 3D communication patterns.
3D Coded SUMMA addresses these issues by weaving mathematical redundancy directly into the computation, bridging the gap between theoretical coded computing and practical HPC requirements.
Methodology
3D Coded SUMMA Framework
The algorithm integrates MatDot codes into the 3D Scalable Universal Matrix Multiplication Algorithm (SUMMA). It utilizes the third dimension of the processor grid (the $l$-axis) to store redundant, encoded data.
- Local Encoding: Matrices $A$ and $B$ are partitioned into blocks and treated as coefficients of a polynomial. These polynomials are evaluated at distinct points to generate encoded versions of the matrices. This step occurs locally, avoiding network congestion.
- Parallel Computation: Each layer in the 3D grid independently executes a standard 2D SUMMA operation on its assigned encoded blocks.
- Decoding and Reduction: The product of the polynomials contains the desired matrix product as a coefficient. The final result is recovered via polynomial interpolation (Reed-Solomon style).
Systematic MatDot Codes
A key feature is the use of Systematic MatDot codes. In this configuration, the primary layers process raw data. If no failures occur in these layers, the decoding step is bypassed, allowing the algorithm to match the performance of an uncoded execution.
Experimental Setup
The algorithm was evaluated using synthetic square matrices with dimensions $N$ ranging from 10,000 to 40,000. Experiments were performed on a cluster of 40 compute nodes (960 total cores) utilizing the Message Passing Interface (MPI) for inter-node communication.
Results and Discussion
Resource Efficiency
3D Coded SUMMA demonstrates superior resource efficiency compared to replication. To tolerate two simultaneous node failures, the algorithm requires roughly 50% fewer redundant nodes than a replication-based approach. As the number of targeted failures increases, the overhead gap between MatDot and replication widens significantly.
Performance Overhead
Empirical results show that the total execution time is only 5–7% higher than standard replication. Notably, approximately 90% of the execution time is dedicated to the core matrix multiplication (2D SUMMA), indicating that the computational cost of the encoding and decoding phases is negligible in large-scale operations.
Conclusion
3D Coded SUMMA provides a robust and communication-efficient solution for parallel matrix multiplication in failure-prone environments. While highly effective for dense matrices, future work is required to adapt these techniques for sparse matrix operations, where encoding may impact performance by increasing data density. Additionally, extending this coded approach to other linear algebra primitives, such as LU factorization, remains a promising area for research.
Summary updated