From 35425566b8873311ec9ef80609728040a6097ce1 Mon Sep 17 00:00:00 2001 From: Aidan Gauland Date: Mon, 26 Sep 2022 17:36:38 +1300 Subject: [PATCH] cudnn: provide default version fallback When passed a CUDA version not in the table of default cuDNN versions for CUDA versions, fall back to a default package version instead of breaking evaluation of the package. --- pkgs/development/libraries/science/math/cudnn/extension.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/science/math/cudnn/extension.nix b/pkgs/development/libraries/science/math/cudnn/extension.nix index 01ec5e4b9b5d..fae958c31d17 100644 --- a/pkgs/development/libraries/science/math/cudnn/extension.nix +++ b/pkgs/development/libraries/science/math/cudnn/extension.nix @@ -111,6 +111,6 @@ final: prev: let "11.4" = "8.3.2"; "11.5" = "8.3.2"; "11.6" = "8.3.2"; - }.${cudaVersion}; + }.${cudaVersion} or "8.3.2"; in cuDnnPackages