From 0b108d35d1a0a0e96cce79cddffd7df63d0b7f47 Mon Sep 17 00:00:00 2001 From: Someone Serge Date: Wed, 10 Jul 2024 23:55:55 +0000 Subject: [PATCH] cudaPackages_10.cutensor: fallback from 2.0.2 to 1.7.0 --- pkgs/development/cuda-modules/cutensor/extension.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/cuda-modules/cutensor/extension.nix b/pkgs/development/cuda-modules/cutensor/extension.nix index 0d6e65f6c75d..1f6ea3655242 100644 --- a/pkgs/development/cuda-modules/cutensor/extension.nix +++ b/pkgs/development/cuda-modules/cutensor/extension.nix @@ -97,11 +97,14 @@ let redistArch = flags.getRedistArch hostPlatform.system; # platformIsSupported :: Manifests -> Boolean platformIsSupported = - { feature, ... }: + { feature, redistrib, ... }: (attrsets.attrByPath [ pname redistArch - ] null feature) != null; + ] null feature) != null + + # NOTE: This is an ad hoc hack; manifest schemas do not support version constraints yet + && !(lib.versionOlder cudaVersion "11.0" && lib.versionAtLeast redistrib.${pname}.version "2.0.2"); # TODO(@connorbaker): With an auxilliary file keeping track of the CUDA versions each release supports, # we could filter out releases that don't support our CUDA version.