From 0fe503acb21cc13f36ce968fc7eeb9c6b0eea4a2 Mon Sep 17 00:00:00 2001 From: Ross Carter Date: Mon, 26 Oct 2026 15:38:30 -0400 Subject: [PATCH] cudnn: fix cross compilation (cherry picked from commit 9033bb5585693940778657c04e273a18e74fea62) --- pkgs/development/cuda-modules/packages/cudnn.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/cuda-modules/packages/cudnn.nix b/pkgs/development/cuda-modules/packages/cudnn.nix index 594b94daa414..49c9b91bafaf 100644 --- a/pkgs/development/cuda-modules/packages/cudnn.nix +++ b/pkgs/development/cuda-modules/packages/cudnn.nix @@ -5,7 +5,7 @@ lib, libcublas, cuda_nvrtc, - patchelf, + buildPackages, zlib, }: buildRedist ( @@ -39,8 +39,8 @@ buildRedist ( # exist in CuDNN 8. # NOTE: Versions from CUDNN releases have four components. postFixup = lib.optionalString (cudnnAtLeast "8" && cudnnOlder "9") '' - ${lib.getExe patchelf} ''${!outputLib:?}/lib/libcudnn.so --add-needed libcudnn_cnn_infer.so - ${lib.getExe patchelf} ''${!outputLib:?}/lib/libcudnn_ops_infer.so --add-needed libcublas.so --add-needed libcublasLt.so + ${lib.getExe buildPackages.patchelf} ''${!outputLib:?}/lib/libcudnn.so --add-needed libcudnn_cnn_infer.so + ${lib.getExe buildPackages.patchelf} ''${!outputLib:?}/lib/libcudnn_ops_infer.so --add-needed libcublas.so --add-needed libcublasLt.so ''; # CuDNN depends on libnvrtc.so at runtime, as mentioned here in one small error description