mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
cudaPackages_10.cutensor: fallback from 2.0.2 to 1.7.0
This commit is contained in:
parent
c2196f2812
commit
0b108d35d1
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user