Skip to content

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 01 Aug 14:46
· 44 commits to main since this release

New features

Initial ROCm support

This release adds the rocm device type. For instance to register a kernel that supports both CUDA and ROCm, you can use:

kernel_layer_mapping = {
    "SiluAndMul": {
        "cuda": LayerRepository(
            repo_id="kernels-community/activation",
            layer_name="SiluAndMul",
        ),
        "rocm": LayerRepository(
            repo_id="kernels-community/activation",
            layer_name="SiluAndMul",
        )
    }
}

register_kernel_mapping(kernel_layer_mapping)

Support for loading local kernel layers

For development and debugging it can often be useful to load kernel layers from a local directory. This is supported by the new LocalLayerRepository class. You can directly use the output of kernel-builder. For example:

kernel_layer_mapping = {
    "SiluAndMul": {
        "cuda": LocalLayerRepository(
            repo_path="/home/daniel/kernels/activation",
            package_name="activation",
            layer_name="SiluAndMul",
        )
    }
}

register_kernel_mapping(kernel_layer_mapping)

What's Changed

New Contributors

Full Changelog: v0.8.1...v0.9.0