summary refs log tree commit diff
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
parentc5432c121ecf2b91fec7e8520f9f75fd6f507333 (diff)
downloadnixpkgs-4784cdb28b612c0d3db2c3e7f95b54ebc80a3b96.tar
nixpkgs-4784cdb28b612c0d3db2c3e7f95b54ebc80a3b96.tar.gz
nixpkgs-4784cdb28b612c0d3db2c3e7f95b54ebc80a3b96.tar.bz2
nixpkgs-4784cdb28b612c0d3db2c3e7f95b54ebc80a3b96.tar.lz
nixpkgs-4784cdb28b612c0d3db2c3e7f95b54ebc80a3b96.tar.xz
nixpkgs-4784cdb28b612c0d3db2c3e7f95b54ebc80a3b96.tar.zst
nixpkgs-4784cdb28b612c0d3db2c3e7f95b54ebc80a3b96.zip
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.
-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 f0c30d801a1..e01664bab31 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"
     ];