From 35425566b8873311ec9ef80609728040a6097ce1 Mon Sep 17 00:00:00 2001 From: Aidan Gauland Date: Mon, 26 Sep 2022 17:36:38 +1300 Subject: [PATCH 1/2] 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 From bcf0c3a882ec0de665f2bb3b3419d3497e5eb24c Mon Sep 17 00:00:00 2001 From: Aidan Gauland Date: Mon, 26 Sep 2022 17:36:45 +1300 Subject: [PATCH 2/2] tensorrt: provide default version fallback When passed a CUDA version not in the table of default TensorRT versions for CUDA versions, fall back to a default package version instead of breaking evaluation of the package. --- pkgs/development/libraries/science/math/tensorrt/extension.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/science/math/tensorrt/extension.nix b/pkgs/development/libraries/science/math/tensorrt/extension.nix index 8e9f64885bad..b76d35a0d84f 100644 --- a/pkgs/development/libraries/science/math/tensorrt/extension.nix +++ b/pkgs/development/libraries/science/math/tensorrt/extension.nix @@ -58,6 +58,6 @@ final: prev: let "11.4" = "8.4.0"; "11.5" = "8.4.0"; "11.6" = "8.4.0"; - }.${cudaVersion}; + }.${cudaVersion} or "8.4.0"; in tensorRTPackages