Unverified Commit 8da872fe authored by Someone's avatar Someone Committed by GitHub
Browse files

Merge pull request #281806 from ConnorBaker/fix/cudaPackages-multiplex-builder-isSupported-check

cudaPackages: fix multiplex builder isSupported check
parents 15e13d61 c9dca803
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -63,11 +63,12 @@ let
  # computeName :: Package -> String
  computeName = {version, ...}: mkVersionedPackageName pname version;

  # Check whether a package supports our CUDA version
  # Check whether a package supports our CUDA version and platform.
  # isSupported :: Package -> Bool
  isSupported =
    package:
    !(strings.hasPrefix "unsupported" package.platform)
    # The `platform` attribute of the package is NVIDIA's name for a redistributable architecture.
    redistArch == package.platform
    && strings.versionAtLeast cudaVersion package.minCudaVersion
    && strings.versionAtLeast package.maxCudaVersion cudaVersion;