cudaPackages_10.cutensor: fallback from 2.0.2 to 1.7.0

This commit is contained in:
Someone Serge 2024-07-10 23:55:55 +00:00
parent c2196f2812
commit 0b108d35d1

View File

@ -97,11 +97,14 @@ let
redistArch = flags.getRedistArch hostPlatform.system; redistArch = flags.getRedistArch hostPlatform.system;
# platformIsSupported :: Manifests -> Boolean # platformIsSupported :: Manifests -> Boolean
platformIsSupported = platformIsSupported =
{ feature, ... }: { feature, redistrib, ... }:
(attrsets.attrByPath [ (attrsets.attrByPath [
pname pname
redistArch 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, # 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. # we could filter out releases that don't support our CUDA version.