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.
This commit is contained in:
Aidan Gauland 2022-09-26 17:36:38 +13:00
parent e17b079679
commit 35425566b8
No known key found for this signature in database
GPG key ID: 16E68DD2D0E77C91

View file

@ -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