cudaPackages: fix multiplex builder isSupported check#281806
Merged
SomeoneSerge merged 1 commit intoNixOS:masterfrom Jan 19, 2024
Merged
Conversation
Co-Authored-By: Yann Hamdaoui <yann.hamdaoui@tweag.io>
Contributor
There was a problem hiding this comment.
❯ nix eval -I nixpkgs=flake:github:ConnorBaker/nixpkgs/fix/cudaPackages-multiplex-builder-isSupported-check -f '<nixpkgs>' --arg config '{ allowUnfree = true; cudaSupport = true; }' \
cudaPackagesGoogle.cudnn_8_6.brokenConditions
{ "CUDA version is too new" = true; "CUDA version is too old" = false; }
...expected: all false, tensorflow.outPath evaluat-able without allowBroken
Cf. #281568
Contributor
There was a problem hiding this comment.
I guess the platform regression is independent of the cuda release regression
Contributor
|
Result of |
SomeoneSerge
approved these changes
Jan 19, 2024
Contributor
SomeoneSerge
left a comment
There was a problem hiding this comment.
Yes I see the regression.
❯ nix eval -f https://github.com/NixOS/nixpkgs/archive/a33557d1b95a8ec416c9c047723b5bb179b57d99.zip --argstr system aarch64-linux --arg config '{ cudaCapabilities = [ "6.2" ]; cudaEnableForwardCompat = false; cudaSupport = true; allowUnfree = true; }' -L cudaPackages.cudnn.src.url
"https://developer.download.nvidia.com/compute/cudnn/redist/cudnn/linux-x86_64/cudnn-linux-x86_64-8.9.7.29_cuda12-archive.tar.xz"
❯ nix eval -f . --argstr system aarch64-linux --arg config '{ cudaCapabilities = [ "6.2" ]; cudaEnableForwardCompat = false; cudaSupport = true; allowUnfree = true; }' -L cudaPackages.cudnn.src.url
"https://developer.download.nvidia.com/compute/cudnn/redist/cudnn/linux-aarch64/cudnn-linux-aarch64-8.9.5.30_cuda12-archive.tar.xz"
Probably introduced by the same commit where I added builtins.sort preferable .... This is horrifying, we still need something much much much simpler in place of our selection logic, even after the recent refactors...
13 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes
The predicate was incorrect because
package.platformis the name of an NVIDIAredistArchand so will always be correct (thereleases.nixexpression is based on the manifests NVIDIA provides). Instead we should check thatpackage.platformis the same as the one we're trying to build for.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.