arXiv:2610.26945cs.MSOct 2026

Manuscript Offprint

arXiv:2610.26945

Emulating DGEMM and ZGEMM with INT8 Matrix Engines on Intel Arc GPUs: Ozaki Scheme II on the Xe2 Architecture

Rostislavs Rostovskis, Aleksandrs Platonenko

Abstract

Double-precision matrix multiplication, real (DGEMM) and complex (ZGEMM), dominates the run time of dense linear algebra and electronic-structure codes. On affordable GPUs, however, FP64 throughput is a small and shrinking fraction of the throughput of the low-precision matrix engines. Ozaki scheme II closes this gap by reducing a floating-point matrix product to a handful of exact INT8 products followed by a Chinese-remainder reconstruction; the number of products sets the accuracy. We present what is, to our knowledge, the first implementation of Ozaki scheme II for Intel GPUs. Written in SYCL on top of oneMKL, it runs entirely on the device and exposes the full BLAS dgemm/zgemm interface, including transposition, conjugation, α\alpha, β\beta and arbitrary problem sizes through memory-aware tiling. Making the scheme fast on the Xe2 (Battlemage) architecture required keeping FP64 arithmetic out of all memory-bound kernels, a branch-free residue computation, an FP32 evaluation of the CRT quotient with a proven safety margin, 16-bit limb arithmetic in the reconstruction, and work-arounds for performance cliffs of the vendor INT8 GEMM. On an Intel Arc Pro B60 (24 GB) the emulated DGEMM reaches 17.3, 12.1 and 9.3 TFLOP/s with s=8s = 8, 12 and 16 moduli at N=8192N = 8192, and up to 21.1 TFLOP/s overall, i.e. 12−28×12-28\times the native FP64 DGEMM of the same board; 75–90% of the run time is spent in INT8 GEMM at ≈95%\approx95\% of its attainable rate. The emulated ZGEMM, which uses the 3M form exactly in integer arithmetic, reaches up to 27.4 TFLOP/s and is 13.7−17.8×13.7-17.8\times faster than native ZGEMM for N≥4096N \geq 4096 at s=16s = 16. With s≥16s \geq 16 the results are correctly rounded for well-scaled inputs and, using an extended-width residue path ( s=20−24s = 20-24), also for inputs with wide exponent ranges, whereas native DGEMM on GPU or CPU rounds only 2–13% of the entries correctly. We further report worst-case accuracy, phase breakdowns, energy, an ablation of the pipeline-level decisions, a comparison with Ozaki scheme I on the same hardware, and a validated performance model for projecting the method to Intel's announced Xe3P-based products.

1 Introduction

High-precision matrix multiplication. The general matrix product C←αop(A)op(B)+βCC \leftarrow \alpha \text{op}(A) \text{op}(B) + \beta C (GEMM, a level-3 BLAS routine [1]) is the kernel onto which dense linear algebra is mapped: blocked LU, Cholesky and QR factorizations, eigenvalue and singular-value solvers, and the High-Performance LINPACK benchmark all perform the overwhelming majority of their floating-point operations in GEMM [2]. Computational chemistry and materials science are a prominent example: self-consistent-field methods such as Hartree–Fock and Kohn–Sham density functional

*Corresponding author: rostislavs.rostovskis@cfi.lu.lv theory repeatedly transform and multiply dense Fock, overlap and density matrices, both in localized-basis and in plane-wave implementations (e.g. [3]). With Bloch k-points these matrices are complex Hermitian, and many-body perturbation methods such as GW [4] are dominated by large complex products (ZGEMM). Complex GEMM is equally central to frequency-domain electromagnetics, quantum transport and quantum-circuit simulation.

These applications need double precision. Total-energy differences of a few meV on totals of 103−10510^{3}-10^{5} Hartree, orbital orthogonalization, ill-conditioned overlap matrices and long iterative processes all amplify rounding errors beyond what single precision can absorb [5]. Mixed-precision algorithms such as iterative refinement move part of the work to lower precision [6, 7], but they still require an FP64 residual and do not replace GEMM itself.

The FP64 gap and its emulation. GPU vendors now spend most of their transistor budget on low-precision matrix engines for machine learning, and FP64 is falling behind. On NVIDIA's current Blackwell generation, both the GeForce RTX 50 series and the RTX PRO workstation boards built on the same GB20x chips execute FP64 at 1/64 of the FP32 rate [8]. Even in the data centre, the Blackwell Ultra platform HGX B300 delivers 10 TFLOP/s of FP64, compared with 296 TFLOP/s for its predecessor HGX B200 [9]. Emulating FP64 GEMM with exact low-precision products is therefore attractive, and NVIDIA itself now ships such an emulation in cuBLAS [10, 11]. Ozaki scheme I [12] splits the significands into L slices and needs O(L2)O(L^{2}) slice products; it has been mapped to Tensor Cores [13] and to INT8 engines [14, 15], and a related splitting recovers FP32 accuracy on Tensor Cores [16]. Ozaki scheme II [17] takes a different route. Instead of splitting the significands, it represents the integerized matrices by their residues modulo s small, pairwise coprime integers and multiplies the residue matrices exactly. Each additional modulus adds about 8 bits of precision at the cost of one more INT8 product, so the work grows linearly rather than quadratically with the target precision. The scheme has since been extended to FP8 [18] and to complex products [19], and shown to be competitive on CPUs with AMX and SVE2 [20].

Why Intel Arc. Intel's Xe2-based Arc Pro B60 offers 24 GB of GDDR6 [21] at a retail price of about US600[22],anunusuallylargememoryforitspriceclass.UnliketheprecedingArcAlchemistgeneration,Xe2hasnativeFP64support[23],butonlyat1/16oftheFP32rate:wemeasure0.76TFLOP/sforDGEMMand11.9TFLOP/sforSGEMM,whiletheXMXmatrixenginesdeliver≈190TOP/sofINT8.Thisratioof≈250betweenINT8andFP64throughputletstheemulationpayoffbyanorderofmagnitude,andthelargememoryaccommodatesthe600 [22], an unusually large memory for its price class. Unlike the preceding Arc Alchemist generation, Xe2 has native FP64 support [23], but only at 1/16 of the FP32 rate: we measure 0.76 TFLOP/s for DGEMM and 11.9 TFLOP/s for SGEMM, while the XMX matrix engines deliver ≈190 TOP/s of INT8. This ratio of ≈250 between INT8 and FP64 throughput lets the emulation pay off by an order of magnitude, and the large memory accommodates the O(sN^{2})$ workspace of the scheme for large problems. Intel has also announced, but not yet shipped, its Xe3P-based data-centre GPU “Crescent Island” [24], now the Intel GPU D-Series. Its first model, the D270, carries up to 480 GB of LPDDR5X and is advertised for workloads from low-precision inference to FP64 scientific computing [25]. Both products thus combine large memory with strong low-precision throughput, which makes them natural targets for Ozaki scheme II.