Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/source/builder/writing-kernels.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ The following sections enumerate all supported options for `build.toml`.
formatted source repository. This repository must contain a `build.toml` and
`flake.nix` so that it can be pulled and built with the kernel builder.
- `python-depends` (**experimental**): a list of additional Python dependencies
that the kernel requires. The only supported dependencies are `einops`
and `nvidia-cutlass-dsl`.
that the kernel requires. The only supported dependencies are `einops`,
`helion`, and `nvidia-cutlass-dsl`.

### `general.hub`

Expand Down
1 change: 1 addition & 0 deletions docs/source/kernel-requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ The following dependencies are currently allowed:
**General dependencies:**

- `einops`
- `helion`

**Backend-specific dependencies:**

Expand Down
4 changes: 4 additions & 0 deletions kernels-data/src/python_dependencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"nix": ["einops"],
"python": [{ "pkg": "einops", "import": "einops" }]
},
"helion": {
"nix": ["helion"],
"python": [{ "pkg": "helion", "import": "helion" }]
},
"tvm-ffi": {
"nix": ["tvm-ffi"],
"python": [{ "pkg": "apache-tvm-ffi", "import": "tvm_ffi" }]
Expand Down
4 changes: 4 additions & 0 deletions kernels/src/kernels/python_depends.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"nix": ["einops"],
"python": [{ "pkg": "einops", "import": "einops" }]
},
"helion": {
"nix": ["helion"],
"python": [{ "pkg": "helion", "import": "helion" }]
},
"tvm-ffi": {
"nix": ["tvm-ffi"],
"python": [{ "pkg": "apache-tvm-ffi", "import": "tvm_ffi" }]
Expand Down
10 changes: 10 additions & 0 deletions nix-builder/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,16 @@ final: prev:
};
});

helion = python-super.helion.overrideAttrs (
_: prevAttrs: {
# nixpkgs marks Helion as broken without CUDA, but it also
# supports ROCm and XPU through Triton.
meta = prevAttrs.meta // {
broken = false;
};
}
);

jax = python-super.jax.overrideAttrs (
_: prevAttrs: {
dontUsePytestCheck = true;
Expand Down
Loading