gpt4all-cuda: fix CUDA initialization (#342251)
This commit is contained in:
commit
e2f071fe68
@ -11,6 +11,7 @@
|
|||||||
, wayland
|
, wayland
|
||||||
, cudaSupport ? config.cudaSupport
|
, cudaSupport ? config.cudaSupport
|
||||||
, cudaPackages ? { }
|
, cudaPackages ? { }
|
||||||
|
, autoAddDriverRunpath
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
@ -41,6 +42,7 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
qt6.wrapQtAppsHook
|
qt6.wrapQtAppsHook
|
||||||
] ++ lib.optionals cudaSupport [
|
] ++ lib.optionals cudaSupport [
|
||||||
cudaPackages.cuda_nvcc
|
cudaPackages.cuda_nvcc
|
||||||
|
autoAddDriverRunpath
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
@ -56,12 +58,13 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
vulkan-headers
|
vulkan-headers
|
||||||
wayland
|
wayland
|
||||||
] ++ lib.optionals cudaSupport (
|
] ++ lib.optionals cudaSupport (
|
||||||
with cudaPackages;
|
with cudaPackages;
|
||||||
[
|
[
|
||||||
cuda_cccl
|
cuda_cccl
|
||||||
cuda_cudart
|
cuda_cudart
|
||||||
libcublas
|
libcublas
|
||||||
]);
|
]
|
||||||
|
);
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DKOMPUTE_OPT_USE_BUILT_IN_VULKAN_HEADER=OFF"
|
"-DKOMPUTE_OPT_USE_BUILT_IN_VULKAN_HEADER=OFF"
|
||||||
|
Loading…
Reference in New Issue
Block a user