Skip to content

Commit

Permalink
gpt4all-cuda: fix CUDA initialization (#342251)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianhjr authored Sep 17, 2024
2 parents 45b9542 + 06c5b53 commit e2f071f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions pkgs/by-name/gp/gpt4all/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
, wayland
, cudaSupport ? config.cudaSupport
, cudaPackages ? { }
, autoAddDriverRunpath
}:

stdenv.mkDerivation (finalAttrs: {
Expand Down Expand Up @@ -41,6 +42,7 @@ stdenv.mkDerivation (finalAttrs: {
qt6.wrapQtAppsHook
] ++ lib.optionals cudaSupport [
cudaPackages.cuda_nvcc
autoAddDriverRunpath
];

buildInputs = [
Expand All @@ -56,12 +58,13 @@ stdenv.mkDerivation (finalAttrs: {
vulkan-headers
wayland
] ++ lib.optionals cudaSupport (
with cudaPackages;
[
cuda_cccl
cuda_cudart
libcublas
]);
with cudaPackages;
[
cuda_cccl
cuda_cudart
libcublas
]
);

cmakeFlags = [
"-DKOMPUTE_OPT_USE_BUILT_IN_VULKAN_HEADER=OFF"
Expand Down

0 comments on commit e2f071f

Please sign in to comment.