about summary refs log tree commit diff
path: root/pkgs/development/libraries/science/math/cudnn
diff options
context:
space:
mode:
authorAidan Gauland <aidalgol@fastmail.net>2022-09-26 17:36:38 +1300
committerAidan Gauland <aidalgol@fastmail.net>2022-09-26 17:36:38 +1300
commit35425566b8873311ec9ef80609728040a6097ce1 (patch)
treef6bd6072b285b93ac273f07ca9497f0405b2b56c /pkgs/development/libraries/science/math/cudnn
parente17b079679d75b59934e02664fec6b214b2779e9 (diff)
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.
Diffstat (limited to 'pkgs/development/libraries/science/math/cudnn')
-rw-r--r--pkgs/development/libraries/science/math/cudnn/extension.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/science/math/cudnn/extension.nix b/pkgs/development/libraries/science/math/cudnn/extension.nix
index 01ec5e4b9b5d2..fae958c31d174 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