Skip to content

ChASE with flexible Ozaki scheme with gemmul8 and fixed Ozaki with cuBLAS 13.1x

Latest

Choose a tag to compare

@nidode nidode released this 26 Nov 13:28

ChASE Library Release Notes

v1.8.0 (compared to v1.7.5)

Overview

This release completes the adaptive Ozaki-II emulated GEMM for the Chebyshev filter deployed on NVIDIA GPUs. v1.7.4 shipped an experimental GEMMul8 path and left the adaptive modulus selection out. v1.8.0 selects the number of coprime moduli from the solver tolerance for double-precision Hermitian problems, adds a cuBLAS fixed-point backend for CUDA 13.5 and newer, and uses Ozaki-II for the pseudo-Hermitian H² filter at a fixed modulus count. The CMake project version is now 1.8.0.

Emulation stays off unless CHASE_ENABLE_OZAKI=ON. CPU and AMD builds keep the ordinary GEMM. Single precision and pseudo-Hermitian problems do not run the flexible search.

🎯 Main Changes

1. Adaptive GEMMul8 modulus selection

CHASE_ENABLE_OZAKI=ON enables precision emulation in the filter. CHASE_OZAKI_BACKEND defaults to GEMMUL8. With GEMMUL8_ROOT empty, ChASE clones GEMMul8 tag v3.4.4 and builds the GEMM-only INT8 library for the same single CUDA architecture as the rest of ChASE.

For a double-precision Hermitian eigenproblem, ChASE keeps the smallest s in 7 to 16 whose loose bound is below the solver tolerance. If a residual stagnates, it moves to the smallest s whose conservative bound is below that tolerance. If no such s exists, the fallback is s = 16. CHASE_OZAKI_FPGEMM_FALLBACK=1 uses the ordinary double-precision GEMM instead. The same selection is used on one GPU and on several GPUs. In parallel, the bound takes the number of ranks times the worst local block, and the FP64 reduction error is treated as exact. The complex bound is twice the real bound.

  • A single-precision solve stays at s = 12.
  • A pseudo-Hermitian solve stays at s = 16 in double precision and at s = 12 in single precision.
  • CHASE_OZAKI_NUM_MODULI pins s for any of these problems and turns the search off.
  • CHASE_DISABLE_OZAKI=1 keeps the Ozaki build and uses the ordinary GEMM for that run.
  • The device workspace defaults to 12 GiB with memory saving on. CHASE_OZAKI_WORKSPACE_GB sets another cap. MAX turns memory saving off and allocates the full workspace for the chosen s. If that allocation fails, ChASE logs the CUDA error and continues with the ordinary GEMM.

2. cuBLAS fixed-point backend

CUDA 13.5 and newer can emulate a double-precision GEMM with fixed-point arithmetic. Select it with CHASE_OZAKI_BACKEND=CUBLAS. This backend uses the CUDA toolkit and does not build GEMMul8. The accuracy knob is the number of mantissa bits, which replaces the coprime modulus count s.

  • CHASE_CUBLAS_MANTISSA_BITS defaults to 32 and is kept for the whole solve.
  • CHASE_CUBLAS_MANTISSA_CONTROL=dynamic lets cuBLAS choose the bit count so the product is at least as accurate as double precision. Unset, the control is fixed.
  • CHASE_CUBLAS_EMULATION_STRATEGY defaults to eager. performant uses emulation only when it is faster.
  • CHASE_CUBLAS_WORKSPACE_MB defaults to 64. A failed allocation continues the solve with the ordinary GEMM.
  • After a residual stagnation, the product switches to the ordinary double-precision GEMM. CHASE_CUBLAS_DISABLE_FALLBACK=1 keeps the emulated product.
  • Choosing the bit count from the solver tolerance is not part of this release.

3. Pseudo-Hermitian H² filter

When Ozaki-II is enabled, the pseudo-Hermitian H² filter uses it on one GPU and on several GPUs, unless the solve is already on the ordinary GEMM. CPU backends still call the ordinary H² product. The pseudo-Hermitian solve initializes Ozaki-II and stays at the fixed modulus count above. It does not run the flexible search.

📦 Additional Changes

  • SetOzakiNumModuli and SetOzakiMantissaBits set the GEMMul8 modulus count and the cuBLAS mantissa width on the GPU interface.
  • Example 5 accepts --double and --complex, selecting float, double, complex<float>, or complex<double>.
  • With early locking disabled, a pseudo-Hermitian convergence update is no longer skipped.
  • The user guide documents both emulated GEMM backends.
  • project(... VERSION ...) is now 1.8.0. After configuration, CHASE_VERSION in chase_config.h and Version in chase.pc follow that number. The README checkout example is v1.8.0.

Minor

  • A vX.Y.Z tag publishes that version of the documentation. The changelog lists one section per release.

📌 Migration Notes

  • Existing configurations stay unchanged. CHASE_ENABLE_OZAKI remains OFF.
  • GEMMul8 is enabled with -DCHASE_ENABLE_OZAKI=ON. The first configure needs either a network fetch or GEMMUL8_ROOT. CMAKE_CUDA_ARCHITECTURES must be a single architecture.
  • The cuBLAS backend needs CUDA 13.5 or newer: -DCHASE_ENABLE_OZAKI=ON -DCHASE_OZAKI_BACKEND=CUBLAS.
  • The flexible search applies only to double-precision Hermitian problems. Single-precision and pseudo-Hermitian solves keep the fixed modulus counts above.
  • CHASE_DISABLE_OZAKI=1 turns emulation off for one run without rebuilding.

👥 Contributors

  • Clément Richefort
  • Xinzhe Wu