diff --git a/.devops/nix/package.nix b/.devops/nix/package.nix index 3222ec469..cb1e8f480 100644 --- a/.devops/nix/package.nix +++ b/.devops/nix/package.nix @@ -150,6 +150,14 @@ effectiveStdenv.mkDerivation ( (cmakeBool "LLAMA_HIPBLAS" useRocm) (cmakeBool "LLAMA_METAL" useMetalKit) ] + ++ optionals useCuda [ + ( + with cudaPackages.flags; + cmakeFeature "CMAKE_CUDA_ARCHITECTURES" ( + builtins.concatStringsSep ";" (map dropDot cudaCapabilities) + ) + ) + ] ++ optionals useRocm [ (cmakeFeature "CMAKE_C_COMPILER" "hipcc") (cmakeFeature "CMAKE_CXX_COMPILER" "hipcc")