You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev/nix/kokkos.nix
+9-7Lines changed: 9 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -20,15 +20,24 @@ let
20
20
"CUDA"=withpkgs.cudaPackages;[
21
21
cudatoolkit
22
22
cuda_cudart
23
+
pkgs.gcc13
23
24
];
24
25
"NONE"=[
25
26
pkgs.gcc13
26
27
];
27
28
};
29
+
getArch=
30
+
_:
31
+
ifgpu!="NONE"&&arch=="NATIVE"then
32
+
throw"Please specify an architecture when the GPU support is enabled. Available architectures: https://kokkos.org/kokkos-core-wiki/get-started/configuration-guide.html#gpu-architectures"
throw"Please specify an architecture when the GPU support is enabled. Available architectures: https://kokkos.org/kokkos-core-wiki/keywords.html#architectures"
0 commit comments