Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit ce202d6

Browse files
authored
Include CPU kernels in CI builds (#296)
1 parent 988d90b commit ce202d6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/gen-flake-outputs.nix

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,15 @@ let
6161
buildConfig // {
6262
bundleBuild = buildConfig.bundleBuild or false;
6363
framework =
64-
if buildConfig ? cudaVersion then
64+
if buildConfig.cpu or false then
65+
"cpu"
66+
else if buildConfig ? cudaVersion then
6567
"cuda"
6668
else if buildConfig ? rocmVersion then
6769
"rocm"
6870
else if buildConfig ? xpuVersion then
6971
"xpu"
70-
else if system == "aarch64-darwin" then
72+
else if buildConfig.metal or false then
7173
"metal"
7274
else
7375
throw "Cannot determine framework for build set";
@@ -180,7 +182,8 @@ in
180182
framework: builtins.filter (set: set.buildConfig.framework == framework) buildSetsSorted;
181183
# It is too costly to build all variants in CI, so we just build one per framework.
182184
onePerFramework =
183-
(headOrEmpty (setsWithFramework "cuda"))
185+
(headOrEmpty (setsWithFramework "cpu"))
186+
++ (headOrEmpty (setsWithFramework "cuda"))
184187
++ (headOrEmpty (setsWithFramework "metal"))
185188
++ (headOrEmpty (setsWithFramework "rocm"))
186189
++ (headOrEmpty (setsWithFramework "xpu"));

0 commit comments

Comments
 (0)