Repository navigation
cuda-modules: fix sort predicate stability - #368366
Merged
Merged
Conversation
Contributor
|
This should be good, but off the top of my head I can't immediately tell why Ofborg failed with ...a riddle for the next morning |
trofi
force-pushed
the
cuda-modules-fix-sort-predicate
branch
from
April 18, 2025 21:46
5e4541b to
8bb2663
Compare
Contributor
Author
|
Trying eval fix as: --- a/pkgs/development/python-modules/torch/default.nix
+++ b/pkgs/development/python-modules/torch/default.nix
@@ -354,7 +354,7 @@ buildPythonPackage rec {
''
+ lib.optionalString (cudaSupport && cudaPackages ? cudnn) ''
export CUDNN_INCLUDE_DIR=${lib.getLib cudnn}/include
- export CUDNN_LIB_DIR=${cudnn.lib}/lib
+ export CUDNN_LIB_DIR=${lib.getLib cudnn}/lib
''
+ lib.optionalString rocmSupport ''
export ROCM_PATH=${rocmtoolkit_joined}I'm not sure if existing |
trofi
force-pushed
the
cuda-modules-fix-sort-predicate
branch
from
April 18, 2025 23:04
91f1573 to
abfad7d
Compare
SomeoneSerge
approved these changes
Apr 20, 2025
SomeoneSerge
left a comment
Contributor
There was a problem hiding this comment.
Thanks for the bump. Let's wait for OfBorg and merge
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
Without the change the eval fails as:
$ nix build --no-link -f. opensplatWithCuda --argstr system aarch64-linux
error:
error: attribute 'lib' missing
at /home/slyfox/dev/git/nixpkgs-master/pkgs/development/python-modules/torch/default.nix:357:30:
356| export CUDNN_INCLUDE_DIR=${lib.getLib cudnn}/include
357| export CUDNN_LIB_DIR=${cudnn.lib}/lib
| ^
358| ''
Incorrect sorting predicate was found as part of NixOS/nix#12106 where `nix` was crashing on the code like: $ nix eval --expr 'builtins.sort (a: b: true) [ 1 2 3 ]' ... Aborted (core dumped) Note: the crash happens here because sorting predicate does not implement `isLess` and triggers assertion failures for `std::stable_sort` that backs `builtins.sort`. THe change restore `isLess` semantic for `preferable`.
SomeoneSerge
force-pushed
the
cuda-modules-fix-sort-predicate
branch
from
May 8, 2025 17:20
abfad7d to
9fd753e
Compare
Contributor
|
github got confused by |
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.
Incorrect sorting predicate was found as part of
NixOS/nix#12106 where
nixwas crashing on the code like:Note: the crash happens here because sorting predicate does not implement
isLessand triggers assertion failures forstd::stable_sortthat backsbuiltins.sort.THe change restore
isLesssemantic forpreferable.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.