From 4784cdb28b612c0d3db2c3e7f95b54ebc80a3b96 Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Fri, 21 Oct 2022 21:27:08 -0500 Subject: [PATCH] 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. --- pkgs/test/cuda/cuda-library-samples/generic.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/test/cuda/cuda-library-samples/generic.nix b/pkgs/test/cuda/cuda-library-samples/generic.nix index f0c30d801a1c..e01664bab319 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" ];