arrow
返回

Kernel Float: Unlocking Mixed-Precision GPU Programming

delete2026-03-01
delete2
PRE
AI
S
Stijn Heldens *
B
Ben van Werkhoven
DOI:10.1145/3779120delete
delete原文链接
delete原文求助
delete分享
delete收藏
摘要

摘要

En 中文
Modern GPUs feature specialized hardware for low-precision floating-point arithmetic to accelerate compute-intensive workloads that do not require high numerical accuracy, such as those from artificial intelligence. However, despite the significant gains in computational throughput, memory bandwidth utilization, and energy efficiency, integrating low-precision formats into scientific applications remains difficult. We introduce Kernel Float, a header-only C++ library that simplifies the development of portable mixed-precision GPU kernels. Kernel Float provides a generic vector type, a unified interface for common mathematical operations, and fast approximations for low-precision transcendental functions that lack native hardware support. To demonstrate the potential of mixed-precision computing unlocked by our library, we integrated Kernel Float into nine GPU kernels from various domains. Our evaluation on Nvidia A100 and AMD MI250X GPUs shows performance improvements of up to 12 & times; over double precision, while reducing source code length by up to 50% compared to handwritten kernels and having negligible runtime overhead. Our results further show that mixed-precision performance depends not only on choosing appropriate data types but also on tuning traditional optimization parameters (e.g., block size and vector width) and, when relevant, even domain-specific parameters.
Keyword:
Mixed-precision programming
GPU computing
CUDA
HIP
High-performance computing

期刊

ACM Transactions on Mathematical Software 封面图
ACM Transactions on Mathematical Software
IF:
3.2
论文数:
35
被引数:
5.1K

机构

L
leiden university - excl lumc
学者数:
3.5W
论文数: 2.9W
被引数: 46
L
leiden university
学者数:
2.6K
论文数: 1.3K
被引数: 0
引用论文

引用论文

err分享
err收藏
err分享
err收藏
Ginkgo: A Modern Linear Operator Algebra Framework for High Performance Computing
err2022-02-16
err0
errOAAI
errHartwig Anzt; Terry Cojean; Goran Flegar; Fritz Göbel; Thomas Grützmacher; Pratik Nayak; Tobias Ribizel; Yuhsiang Mike Tsai; Enrique S. Quintana-Ortí
err分享
err收藏
AxBench: A Multiplatform Benchmark Suite for Approximate Computing
err2017-04-01
err0
errOAAI
errAmir Yazdanbakhsh; Divya Mahajan; Hadi Esmaeilzadeh; Pejman Lotfi-Kamran
err分享
err收藏
The Landscape of Exascale Research: A Data-Driven Literature Analysis
err2020-03-20
err38
errOAAI
errHeldens, Stijn; Hijma, Pieter; van Werkhoven, Ben; Maassen, Jason; Belloum, Adam S. Z.; Van Nieuwpoort, Rob V.
err分享
err收藏
GRAM
err2021-02-09
err0
errOAAI
errNhut-Minh Ho; Himeshi De silva; Weng-Fai Wong
err分享
err收藏
MPFR
err2007-06-01
err0
PREAI
errLaurent Fousse; Guillaume Hanrot; Vincent Lefèvre; Patrick Pélissier; Paul Zimmermann
err分享
err收藏
学者 查看更多内容