We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b7e009 commit b590c3fCopy full SHA for b590c3f
2 files changed
flake.nix
@@ -146,6 +146,7 @@
146
with buildSet.pkgs;
147
(
148
allOutputs buildSet.torch
149
+ ++ lib.concatMap allOutputs buildSet.extension.extraBuildDeps
150
++ allOutputs build2cmake
151
++ allOutputs kernel-abi-check
152
++ allOutputs python3Packages.kernels
lib/torch-extension/default.nix
@@ -1,4 +1,8 @@
1
{
2
+ rocmSupport ? torch.rocmSupport,
3
+ xpuSupport ? torch.xpuSupport,
4
+
5
+ lib,
6
callPackage,
7
stdenv,
8
stdenvGlibc_2_27,
@@ -31,6 +35,13 @@ let
31
35
};
32
36
in
33
37
38
+ extraBuildDeps =
39
+ lib.optionals xpuSupport [
40
+ oneapi-torch-dev
41
+ onednn-xpu
42
+ ]
43
+ ++ lib.optionals rocmSupport [ clr ];
44
34
45
mkExtension = callPackage ./arch.nix {
46
inherit
47
clr
0 commit comments