about summary refs log tree commit diff
path: root/pkgs/test
diff options
context:
space:
mode:
authorThomas Watson <twatson52@icloud.com>2022-10-21 21:27:08 -0500
committerThomas Watson <twatson52@icloud.com>2022-10-21 21:27:48 -0500
commit4784cdb28b612c0d3db2c3e7f95b54ebc80a3b96 (patch)
treede24b86bffb8dc2105ecdcda6f89fb13c3c0ad06 /pkgs/test
parentc5432c121ecf2b91fec7e8520f9f75fd6f507333 (diff)
cuda-library-samples.cutensor: fix
Previously, the cutensor samples could not find the libcutensor.so.1
shared library at runtime. This patch adds cutensor as a buildInput so
the shared library is linked in properly.
Diffstat (limited to 'pkgs/test')
-rw-r--r--pkgs/test/cuda/cuda-library-samples/generic.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/test/cuda/cuda-library-samples/generic.nix b/pkgs/test/cuda/cuda-library-samples/generic.nix
index f0c30d801a1c9..e01664bab3191 100644
--- a/pkgs/test/cuda/cuda-library-samples/generic.nix
+++ b/pkgs/test/cuda/cuda-library-samples/generic.nix
@@ -54,6 +54,8 @@ in
 
     src = "${src}/cuTENSOR";
 
+    buildInputs = [ cutensor ];
+
     cmakeFlags = [
       "-DCUTENSOR_EXAMPLE_BINARY_INSTALL_DIR=${builtins.placeholder "out"}/bin"
     ];