Skip to content

v0.6.2

Latest
Compare
Choose a tag to compare
@danieldk danieldk released this 24 Sep 15:30
· 19 commits to main since this release

New Features

Intel XPU support

This release of kernel-builder adds XPU support. Many thanks to @sywangyi for implementing this! You can use the xpu backend type in build.toml for XPU kernels. For example:

[kernel.activation_xpu]
backend = "xpu"
depends = ["torch"]
src = ["relu_xpu/relu.cpp"]

The ReLU example kernel shows how you can make a kernel that support CUDA, ROCm and XPU backends.

kernel-abi-check Python binding

kernel-abi-check now also has a Python binding. This will be used by the upcoming kernels check subcommand.

API changes

Prior to this version, a kernel would have to provide the Git revision to genFlakeOutputs in its flake.nix. For example:

kernel-builder.lib.genFlakeOutputs {
  path = ./.;
  rev = self.shortRev or self.dirtyShortRev or self.lastModifiedDate;
};

Starting with version 0.6.2, kernel-builder determines the revision. Instead, a kernel has to pass through the flake itself (self):

kernel-builder.lib.genFlakeOutputs {
  inherit self;
  path = ./.;
};

The old invocation of genFlakeOutputs still works with a warning, but will be deprecated in the future.

What's Changed

Full Changelog: v0.6.1...v0.6.2