Skip to content

cudaPackages: mark source-based releases as broken if cudaSupport is false #280431

Open

Description

@ConnorBaker

For source-available packages like CUDA samples, NCCL, NCCL-Tests, and Saxpy, we should mark them as broken if cudaSupport is false. My reasoning is this: when source-based packages generate code for GPUs, we should make certain cudaSupport is enabled.

However, binary-based packages should not be marked as broken if cudaSupport is false (not explicitly anyway -- it's fine if they're broken due to a dependency on a package marked as broken) because they do not generate (or perhaps even contain!) GPU device code. As an example, cuobjdump doesn't require a GPU to run and should be usable even if cudaSupport is false (assuming allowUnfree is true).

@NixOS/cuda-maintainers @SomeoneSerge @samuela thoughts?


Add a 👍 reaction to issues you find important.

Activity

  1. added
    0.kind: bug
    6.topic: cuda
    on Jan 12, 2024
  2. self-assigned this
    on Jan 12, 2024
  3. SomeoneSerge commented on Jan 12, 2024

    @SomeoneSerge
    Contributor

    Why would these packages take a cudaSupport argument if they only exist as cuda variants?

  4. samuela commented on Jan 15, 2024

    @samuela
    Member

    IIRC there are some packages that try using CUDA at runtime and fall back on CPU. Admittedly I don't remember who's doing this (maybe blender or something like that?), or if they're source builds.

    But I'm not opposed to marking a source-built package broken if there's no reasonable way the build would succeed without cudaSupport. In that case I guess @SomeoneSerge 's question stands: "why accept a cudaSupport argument if they have no other reasonable configuration?"

  5. SomeoneSerge commented on Jan 15, 2024

    @SomeoneSerge
    Contributor

    IIRC there are some packages that try using CUDA at runtime and fall back on CPU. Admittedly I don't remember who's doing this (maybe blender or something like that?), or if they're source builds.

    Not in the cudaPackages namespace though?

  6. samuela commented on Jan 16, 2024

    @samuela
    Member

    Oh true! None in the cudaPackages namespace thankfully

  7. added
    2.status: stale
    on Jul 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

0.kind: bug2.status: stale6.topic: cuda

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions