Skip to main content
QUICK REVIEW

[Paper Review] Acceleration of multiple precision matrix multiplication based on multi-component floating-point arithmetic using AVX2

Tomonori Kouya|arXiv (Cornell University)|Jan 16, 2021
Numerical Methods and AlgorithmsComputer Science9 references4 citations
TL;DR

This paper presents a highly optimized, AVX2-accelerated implementation of multiple precision matrix multiplication using double-double (DD), triple-double (TD), and quad-double (QD) arithmetic based on error-free transformation (EFT) techniques. By leveraging SIMDized EFT functions and AVX2 instructions for parallel computation and memory access, the authors achieve over threefold speedup compared to non-accelerated versions, with stable performance scaling up to 10–24 threads on modern x86-64 CPUs like Intel Core i9 and AMD EPYC.

ABSTRACT

In this paper, we report the results obtained from the acceleration of multi-binary64-type multiple precision matrix multiplication with AVX2. We target double-double (DD), triple-double (TD), and quad-double (QD) precision arithmetic designed by certain types of error-free transformation (EFT) arithmetic. Furthermore, we implement SIMDized EFT functions, which simultaneously compute with four binary64 numbers on x86_64 computing environment, and by using help of them, we also develop SIMDized DD, TD, and QD additions and multiplications. In addition, AVX2 load/store functions were adopted to efficiently speed up reading and storing matrix elements from/to memory. Owing to these combined techniques, our implemented multiple precision matrix multiplications have been accelerated more than three times compared with non-accelerated ones. Our accelerated matrix multiplication modifies the performance of parallelization with OpenMP.

Motivation & Objective

  • To accelerate multiple precision matrix multiplication beyond traditional implementations using AVX2 vector instructions.
  • To implement efficient SIMDized error-free transformation (EFT) functions for DD, TD, and QD arithmetic on x86-64.
  • To optimize memory access for MPF matrices using AVX2 load/store instructions.
  • To evaluate performance scaling with OpenMP on high-core-count CPUs like AMD EPYC and Intel Core i9.
  • To compare block matrix multiplication and Strassen’s algorithm in terms of parallelization efficiency and speedup.

Proposed method

  • Implemented AVX2-optimized EFT functions (AVX2QuickTwoSum, AVX2TwoSum, AVX2TwoProd) using intrinsic functions like _mm256_add_pd and _mm256_fmadd_pd.
  • Designed a new data structure for MPF vectors and matrices to enable efficient AVX2 load/store operations using 256-bit registers.
  • Built SIMDized DD, TD, and QD addition and multiplication routines using AVX2 intrinsics, processing four multiple-precision numbers in parallel.
  • Integrated fused multiply-add (FMA) instructions via _mm256_fmadd_pd to improve accuracy and performance in EFT computations.
  • Used OpenMP for thread-level parallelization of block matrix multiplication and Strassen’s algorithm on multi-core systems.
  • Evaluated performance on Intel Core i9 (10 cores) and AMD EPYC (24 cores) systems with varying matrix sizes and thread counts.

Experimental results

Research questions

  • RQ1Can AVX2-based SIMD parallelization significantly accelerate multiple precision matrix multiplication using DD, TD, and QD arithmetic?
  • RQ2How does the performance of block matrix multiplication scale with OpenMP on high-core-count CPUs like AMD EPYC?
  • RQ3Why does Strassen’s algorithm fail to scale beyond ~6x speedup on CPUs with more than eight cores, even with AVX2?
  • RQ4To what extent can AVX2 optimize memory access and arithmetic kernels for multi-component floating-point types?
  • RQ5Is block matrix multiplication more scalable than Strassen’s algorithm for large, ill-conditioned problems on modern multi-core systems?

Key findings

  • The proposed AVX2-optimized implementation achieved over threefold speedup compared to non-accelerated MPF matrix multiplication.
  • Block matrix multiplication showed stable speedup up to 10 threads on Intel Core i9 and 24 threads on AMD EPYC, indicating effective parallel scaling.
  • Strassen’s algorithm was limited to approximately sixfold speedup on both CPUs, regardless of AVX2, due to inefficient thread scheduling in recursive calls.
  • On AMD EPYC with 24 cores, block matrix multiplication outperformed Strassen’s algorithm for all tested precisions (DD, TD, QD), especially at larger matrix sizes.
  • AVX2 significantly improved memory access performance through optimized load/store operations using 256-bit registers, contributing to overall speedup.
  • The implementation demonstrated that block matrix multiplication is the preferred choice for high-core-count systems, while Strassen’s method is limited by inherent parallelization bottlenecks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.