[Paper Review] Porting of the DBCSR library for Sparse Matrix-Matrix Multiplications to Intel Xeon Phi systems
This paper evaluates the porting and performance of the DBCSR library—optimized for sparse matrix-matrix multiplication (SpGEMM)—on Intel Xeon Phi Knights Landing (KNL) systems. It compares KNL-based Cray XC40 systems against Xeon CPU and GPU-accelerated Cray XC50 systems, finding KNL systems 11–14% slower than GPU systems but up to 24% faster than CPU-only systems at scale, with optimal performance in full CACHE and QUADRANT clustering modes.
Multiplication of two sparse matrices is a key operation in the simulation of the electronic structure of systems containing thousands of atoms and electrons. The highly optimized sparse linear algebra library DBCSR (Distributed Block Compressed Sparse Row) has been specifically designed to efficiently perform such sparse matrix-matrix multiplications. This library is the basic building block for linear scaling electronic structure theory and low scaling correlated methods in CP2K. It is parallelized using MPI and OpenMP, and can exploit GPU accelerators by means of CUDA. We describe a performance comparison of DBCSR on systems with Intel Xeon Phi Knights Landing (KNL) processors, with respect to systems with Intel Xeon CPUs (including systems with GPUs). We find that the DBCSR on Cray XC40 KNL-based systems is 11%-14% slower than on a hybrid Cray XC50 with Nvidia P100 cards, at the same number of nodes. When compared to a Cray XC40 system equipped with dual-socket Intel Xeon CPUs, the KNL is up to 24% faster.
Motivation & Objective
- To assess the performance of the DBCSR library on Intel Xeon Phi Knights Landing (KNL) processors for large-scale sparse matrix-matrix multiplication.
- To compare KNL-based systems against traditional Xeon CPU and GPU-accelerated systems in terms of execution time and scalability.
- To identify optimal KNL configuration settings (e.g., memory mode, clustering) for maximizing DBCSR performance.
- To evaluate the impact of communication, memory bandwidth, and threading on performance in a distributed-memory environment.
- To determine whether KNL systems can serve as a viable alternative to GPU-accelerated or CPU-only systems for linear scaling electronic structure simulations.
Proposed method
- Ported the DBCSR library—originally optimized for MPI+OpenMP and CUDA—to run on Intel Xeon Phi KNL systems using the same source code and standard compiler optimizations.
- Employed the 2.5D communication-reducing algorithm for distributed sparse matrix multiplication, minimizing communication costs across MPI processes.
- Used asynchronous MPI calls in Funneled mode to overlap communication with computation, improving efficiency on KNL and other architectures.
- Applied cache-oblivious matrix traversal to enhance data locality during local block multiplications.
- Configured KNL systems in full CACHE and QUADRANT clustering modes to leverage high-bandwidth MCDRAM and improve memory access patterns.
- Conducted performance measurements across three benchmarks (S-E, H2O-DFT-LS, AMORPH) on up to 144 nodes, comparing execution times and time breakdowns (communication, computation, initialization).
Experimental results
Research questions
- RQ1How does the performance of the DBCSR library on KNL-based systems compare to that on GPU-accelerated and CPU-only systems for sparse matrix-matrix multiplication?
- RQ2What is the impact of KNL memory configuration (e.g., full CACHE vs. FLAT mode) on DBCSR execution time and scalability?
- RQ3How do communication overhead and thread-level load imbalance affect performance on KNL and other architectures?
- RQ4Which system configuration (KNL, GPU, CPU) delivers the best time-to-solution for different SpGEMM workloads and block sizes?
- RQ5To what extent does the 2.5D algorithm and static block decomposition influence performance and scalability on KNL?
Key findings
- The DBCSR library on Cray XC40 KNL systems is 11–14% slower than on a hybrid Cray XC50 system with NVIDIA P100 GPUs at the same number of nodes.
- KNL systems outperform dual-socket Intel Xeon CPU systems by up to 24% in execution time for the same workloads.
- Performance on KNL is significantly degraded (10–56% slowdown) when using DRAM instead of MCDRAM, highlighting the importance of memory mode configuration.
- The best performance was achieved with KNL in full CACHE mode and QUADRANT clustering mode, with hyperthreading disabled.
- Communication time (measured via mpi_waitall) accounts for 15–57% of total execution time across benchmarks, with higher fractions on KNL and MC systems.
- The AMORPH benchmark showed the best thread scalability due to its high computational intensity, while load imbalance of up to 30% was observed due to static block decomposition and on-the-fly filtering.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.