Skip to content
trendoviz

NVIDIA adds Ozaki-II and 2M FP64 algorithms to cuBLAS

CUDA Toolkit 13.4.2 introduces Ozaki-II and 2M, two cuBLAS algorithms that map FP64 matrix multiplication onto integer Tensor Cores. NVIDIA reports kernel-level speedups ranging from 3.9× to 5.5× for DGEMM with Ozaki-II on VR NVL72 and GB200, with smaller gains in end-to-end scientific applications.

Published
  • 4 min read
  • 1 source cited
  • For Developers, Businesses, AI makers, AI enthusiasts

Overview

The new algorithms address a longstanding hardware trade-off in scientific computing. Dense general matrix multiplication in double precision remains a major cost in areas such as quantum chemistry and materials science, while NVIDIA’s Tensor Cores have delivered their largest gains in lower-precision formats. The Ozaki schemes emulate FP64 arithmetic by splitting inputs into integer components, performing the multiplication on integer Tensor Cores and reconstructing the result. The 2M method takes a separate approach to complex FP64 multiplication.

CUDA Toolkit 13.4.2 adds these paths to cuBLAS, with automatic selection through runtime heuristics. Users can also set the integer width explicitly. The vendor says DGEMM and ZGEMM can be accelerated without changes to application code.

Why it matters

The change targets a specific but costly operation: dense FP64 matrix multiplication inside scientific applications. Because cuBLAS handles the conversion and selection through library-level controls, teams may be able to test the new paths without restructuring their DGEMM or ZGEMM calls.

The vendor-reported application results show why matrix-level figures do not translate directly into application speed. In the CCSD quantum-chemistry case study, end-to-end gains were 2× on VR NVL72 and 1.4× on GB200 in full FP64 mode, rising to 5× and 3.5× respectively when the application used its own mixed-precision mode. A hypothesis is that workloads dominated by FP64 GEMM have the greatest potential to benefit, while those with substantial non-GEMM work will see smaller end-to-end changes. The evidence does not establish how broadly this pattern holds.

Context

DGEMM and ZGEMM are the cuBLAS operations for real and complex double-precision matrix multiplication. The earlier Ozaki-I method converted FP64 inputs into a shared-exponent, variable-length integer representation, then multiplied 8-bit slices in a triangular arrangement. The number of required Tensor Core GEMMs grew with the square of the slice count.

Ozaki-II retains the same initial conversion but uses the Chinese Remainder Theorem. Each quantized operand is reduced modulo small, pairwise-coprime integers, one integer GEMM is performed per modulus, and the product is reconstructed from the resulting residues. This makes the GEMM count grow linearly with the number of moduli rather than quadratically with the slice count. At FP64 accuracy, NVIDIA states that Ozaki-I requires roughly twice as many Tensor Core GEMMs as Ozaki-II.

The 2M method reduces a complex matrix multiplication from four real multiplications to two. Both new algorithms sit within NVIDIA’s Automatic Dynamic Precision framework, which maps FP64 arithmetic onto integer Tensor Cores. NVIDIA also states that the newer Rubin GPUs add the TI16 numeric format and the tcgen05.mma instruction, which further accelerate Ozaki-I and Ozaki-II computations.

Known, claimed, inferred

The reported results are strongest at the kernel level. NVIDIA claims that DGEMM with Ozaki-II runs 5.5× faster than native FP64 on VR NVL72 and 3.9× faster on GB200, and 2× faster than Ozaki-I on GB200. It reports throughput of up to 175 TFLOPS on VR NVL72, 147 TFLOPS on GB200 and 37 TFLOPS on RTX PRO 6000.

For complex arithmetic, NVIDIA reports a 5× ZGEMM speedup with 2M over native complex FP64 on GB200. The BerkeleyGW materials-science case study reports ZGEMM gains of 6.6× on VR NVL72 and 3.9× on GB200.

These are vendor claims from a single NVIDIA Technical Blog post rather than independent third-party benchmarks. The pattern across the two case studies suggests that end-to-end gains depend on precision mode and system, not only on the accelerated operation itself. No power, energy-efficiency or total-cost measurements are reported, so shorter execution time should not be treated as established efficiency or cost improvement.

Opportunities

Developers can evaluate Ozaki-II and 2M through the updated cuBLAS before changing application code, since NVIDIA reports that automatic acceleration requires no application changes. HPC and AI teams can then measure their own DGEMM- and ZGEMM-heavy workloads rather than relying on the published case studies.

The exposed emulation controls, including manual mantissa bit control and the ability to set integer width explicitly, allow comparisons between automatic selection and explicit configurations. The two documented applications, CCSD for quantum chemistry and BerkeleyGW for materials science, provide starting points for domain-specific evaluation.

Risks

Full FP64 accuracy is claimed, but the available material does not describe how that accuracy was validated. Scientific users therefore face numerical-verification risk when adopting the algorithms.

Ozaki-II materializes one residue pair per modulus, which can require a larger workspace than Ozaki-I. NVIDIA describes its cuBLAS implementation as memory-conscious, but no quantitative workspace or memory overhead is provided.

The team remains dependent on NVIDIA’s hardware and software stack, including its runtime heuristics and emulation controls. The evidence also does not describe support for older GPU architectures or non-Rubin GPUs.

Limitations & uncertainties

All findings come from one NVIDIA Technical Blog post; no independent third-party test report confirms the reported speedups or throughput.

The evidence does not include quantitative memory or workspace overhead for Ozaki-II, or details of the methodology used to validate full FP64 accuracy.

The results are limited to the presented scientific case studies. There are no user testimonials or documented real-world adoption examples beyond those studies, and support for older GPU architectures and non-Rubin GPUs is not described.

Evidence & sources

Updates & corrections

  1. First published

Found an error? Report it.