cuda-modules: fix sort predicate stability#368366
Conversation
|
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 |
5e4541b to
8bb2663
Compare
|
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 |
91f1573 to
abfad7d
Compare
SomeoneSerge
left a comment
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: https://discourse.nixos.org/t/prs-ready-for-review/3032/5425 |
|
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/prs-ready-for-review/3032/5447 |
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`.
abfad7d to
9fd753e
Compare
|
github got confused by |
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.