# BF16 Component-Product Emulation of FP32 and FP64 GEMM on Intel AMX

DevFeed: [BF16 Component-Product Emulation of FP32 and FP64 GEMM on Intel AMX](<https://devfeed.tech/articles/bf16-component-product-emulation-of-fp32-and-fp64-gemm-on-intel-amx-131515.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2609.04663>)

Author: Bing Cui, Yu Liu

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Distributed Computing](<https://devfeed.tech/sources/arxiv-distributed-computing.md>)

Topics: [High-Performance Computing](<https://devfeed.tech/topics/high-performance-computing.md>), [performance-engineering](<https://devfeed.tech/topics/performance-engineering.md>), [intel](<https://devfeed.tech/topics/intel.md>), [cpu](<https://devfeed.tech/topics/cpu.md>)

Tags: [bf16](<https://devfeed.tech/tags/bf16.md>), [component](<https://devfeed.tech/tags/component.md>), [cs-dc](<https://devfeed.tech/tags/cs-dc.md>), [cs-ms](<https://devfeed.tech/tags/cs-ms.md>), [emulation](<https://devfeed.tech/tags/emulation.md>), [intel](<https://devfeed.tech/tags/intel.md>), [performance](<https://devfeed.tech/tags/performance.md>), [precision](<https://devfeed.tech/tags/precision.md>), [product](<https://devfeed.tech/tags/product.md>), [scientific-computing](<https://devfeed.tech/tags/scientific-computing.md>)

## AI overview

The paper emulates square FP32 and FP64 GEMM with BF16 products on Intel AMX. For FP32, it decomposes each input element into three BF16 components and evaluates six selected products, targeting accuracy comparable to oneMKL SGEMM. For FP64 values within the supported BF16 exponent range, a fixed six-slice Ozaki decomposition retains 6, 10, 15, or 21 products; each is computed in FP32, then widened and accumulated in FP64, trading speed for accuracy. The FP32 schedule reuses components and keeps partial sums in AMX tiles. In reported tests, AMX-FP32 beats oneMKL SGEMM at orders N >= 4096 on 64 threads and also gains on smaller matrices at lower thread counts. Some lower-product AMX-FP64 variants beat oneMKL DGEMM at sufficiently large orders, while retaining more products improves accuracy at added cost.

## Source excerpt

arXiv:2609.04663v2 Announce Type: replace-cross Abstract: Modern CPUs increasingly integrate high-throughput matrix engines optimized for low-precision AI workloads, while many scientific computing applications still rely on FP32 and FP64 GEMM to meet their numerical accuracy requirements. This paper presents a method that combines BF16 matrix products on Intel Advanced Matrix Extensions (AMX) to emulate real square FP32 and FP64 GEMM. For FP32 GEMM, each element in both input matrices is decomposed into three BF16 components, and six selected component products are evaluated to target FP32-level accuracy comparable to oneMKL SGEMM. For FP64 inputs within the supported BF16 exponent range, the method uses a simplified fixed six-slice Ozaki decomposition. Each retained BF16 product is first produced in FP32, then widened and accumulated in FP64. Four product-count settings retain 6, 10, 15, or 21 component products, exposing the accuracy-performance tradeoff relative to oneMKL DGEMM. The FP32 schedule reuses component data and retains partial sums in AMX tiles. AMX-FP32 outperforms oneMKL SGEMM at tested orders $N\ge4096$ on 64 threads and also achieves gains for smaller matrices at lower thread counts. AMX-FP64 variants retaining fewer component products can outperform oneMKL DGEMM at sufficiently large orders; more products improve accuracy at additional cost.