Skip to content

kernox 1.0.0

Choose a tag to compare

@keckj keckj released this 15 Nov 15:18
· 33 commits to main since this release

First release. kernox writes pairwise computations (Gaussian sums, nearest neighbours, log-sum-exp, softmax-weighted sums, …) as symbolic formulas on variables indexed by i and j, and runs them as fused GPU reductions: the M×N pairwise matrix is never materialized.

  • GPUs from three vendors: NVIDIA (cuda, NVRTC), AMD (hip, hipRTC from PyTorch ROCm) and Intel (sycl, oneAPI icpx).
  • A successor to PyKeOps: sum, min/max, argmin/argmax, k-min/argkmin, log-sum-exp (with weights), softmax-weighted sum, batch dimensions, block-sparse ranges, summation schemes, FP16, complex formulas, solve and linear operators, gradients through torch.autograd.
  • Built on symox: formulas are symbolic expressions, derivatives are computed symbolically and run as fused reductions, device code is generated for each backend.
  • No silent fallback: an unsupported operation, dtype or device raises an explicit error before any launch. The oracle backend, a blockwise PyTorch reference, runs only when requested.
  • Autotuning, fast_math (approximate exp and log on NVIDIA GPUs) and a conformance suite shared by every backend.

Full changelog: https://github.com/keckj/kernox/commits/v1.0.0