mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
gpt4all-cuda: fix CUDA initialization
This commit is contained in:
parent
655748700a
commit
06c5b53ca5
@ -11,6 +11,7 @@
|
||||
, wayland
|
||||
, cudaSupport ? config.cudaSupport
|
||||
, cudaPackages ? { }
|
||||
, autoAddDriverRunpath
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@ -41,6 +42,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
qt6.wrapQtAppsHook
|
||||
] ++ lib.optionals cudaSupport [
|
||||
cudaPackages.cuda_nvcc
|
||||
autoAddDriverRunpath
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user