cuda-modules: fix and clean up multiplex builder package selection logic#405707
Conversation
GaetanLepage
left a comment
There was a problem hiding this comment.
Diff looks fine to me. Although I must admit that I am not familiar with this module, so consider it as an out-of-context sanity check.
Signed-off-by: Connor Baker <ConnorBaker01@gmail.com>
7afa7c7 to
030575e
Compare
|
Rebased on |
|
Merging since this allows building PyTorch. |
|
This broke eval of |
| allPackages = lib.filter satisfiesCudaVersion ( | ||
| evaluatedModules.config.${pname}.releases.${redistArch} or [ ] | ||
| ); |
There was a problem hiding this comment.
I don't see any filtering done in the previous version, so the issue is probably here
There was a problem hiding this comment.
Could just special case the empty list branch
Confirmed: DetailsOdd that this passed the checks (CC @infinisil if you're still working on github workflows?) |
|
Unless someone beats me to it I’ll make a PR to predicate broken on cudaSupport. |
Not sure I understand what's the idea? |
|
Sorry that was unclear, I meant something like Although, I’ll also see if there’s a simple way to have some sort of placeholder attribute in the CUDA package sets when none of the manifest entries correspond to the Nix system doing evaluation. |
But where do you want to add that? EDIT: If you mean the python package, I think we should not do that. The bug is on cudaPackages side, and the error the python package should display is that it depends on a package unsupported by the platform IMO
👍🏻 that's what we need to restore |
|
See #406207 for a fix. |
This is a fix for a regression introduced in #368366, which manifests as
cudnn(and likely other packages produced by the multiplex builder) selecting packages for the wrong architecture.Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.