What is kernel-builder
mainThe kernel-builder is a build system designed to create Hub-compatible compute kernels. It manages the complexity of ensuring kernels are:
- Portable: Kernels can be loaded from paths outside of
PYTHONPATH. - Unique: Multiple versions of the same kernel can coexist in a single Python process.
- Compatible: Supports recent Python versions and various PyTorch build configurations (including different CUDA versions and C++ ABIs).
This builder uses Nix to build kernels via the PyTorch C++ Frontend. The resulting kernels can be loaded using the kernels Python package.