Repository navigation
kernox 1.0.0
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, oneAPIicpx). - 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,solveand linear operators, gradients throughtorch.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
oraclebackend, a blockwise PyTorch reference, runs only when requested. - Autotuning,
fast_math(approximateexpandlogon NVIDIA GPUs) and a conformance suite shared by every backend.
Full changelog: https://github.com/keckj/kernox/commits/v1.0.0