KernelTuner/kernel_tuner

Kernel Tuner

What it solves

Writing fast GPU code is hard. Developers have to pick the right thread block sizes, memory layouts, and other low-level settings by hand. Kernel Tuner does this search automatically, so you can find the fastest (or most energy-efficient) version of your kernel without endless manual tweaking.

How it works

You give Kernel Tuner your GPU kernel code and a list of parameters to try (for example, different block sizes). It then runs your kernel with each combination and measures the performance. It uses more than 20 optimization algorithms to search the space efficiently, and it also supports energy measurements, power capping, and clock frequency tuning. It works with CUDA, HIP, OpenCL, OpenACC, and OpenMP code, and can be used as an external tool with any host language.

Who it's for

GPU programmers who write kernels in CUDA, HIP, OpenCL, OpenACC, or OpenMP and want to improve performance or energy use without spending hours hand-tuning. It's especially useful for researchers and developers who need a reproducible, automated way to optimize GPU code.

Highlights

  • Works as an external tool, so you don't have to rewrite your existing kernels.
  • Fast search space construction and a wide range of optimization algorithms.
  • Can measure and optimize energy consumption, including power capping and clock frequency tuning.
  • Supports output verification, caching, tuning host and device code, and user-defined metrics.
  • Available as a Python package (pip install kernel_tuner) and has a companion Julia package.

Related

  • Project
  • Project
  • Project
  • Project
  • Dispatch