openai-triton-llvm: fix aarch64 and cross-compilation#267209
openai-triton-llvm: fix aarch64 and cross-compilation#267209wegank merged 3 commits intoNixOS:masterfrom
Conversation
8bb0f73 to
b23fa14
Compare
b23fa14 to
7531b5a
Compare
|
cc @RaitoBezarius |
|
Hi there, I can only review this in December as my bandwidth is severely low due to upcoming release and various engagements. I would recommend posting in the cross compilation channel. |
|
The tests do pass on
No problem, I'll post this PR there. |
7531b5a to
45f5a74
Compare
|
I just realized I messed up badly with the cross code. |
45f5a74 to
c0b83bb
Compare
|
Good thing I caught that, I guess tests only passed because they're not in |
|
The diff LGTM, just running the builds now ❯ nix build github:Madouura/nixpkgs/pr/triton-llvm#pkgsCross.aarch64-multiplatform.python3Packages.torchWithRocm
error:
… while evaluating the attribute 'drvPath'
...
at /nix/store/zkjx4b3klwrsc3gk4pn3pi3j1hvqaws0-source/lib/customisation.nix:247:7:
...
(stack trace truncated; use '--show-trace' to show the full trace)
error: Package ‘rocm-llvm-llvm-5.7.1’ in /nix/store/zkjx4b3klwrsc3gk4pn3pi3j1hvqaws0-source/pkgs/development/rocm-modules/5/llvm/base.nix:160 is marked as broken, refusing to evaluate.Is this expected? (Ofborg skipping darwin for the same reason?) @azuwis could you please test |
|
Any chance you could test |
I don't have a |
For now, let's keep darwin support guarded on torch then. |
|
@ofborg build python3Packages.torch |
Why is torch failing on |
On this branch |
|
Result of 28 packages marked as broken and skipped:
38 packages failed to build:
486 packages built:
|
|
Indeed, eval looks fine: @Artturin why does ofborg care about whether torch evals on master? |
It doesn't, I just said it because @Madouura thought it was broken on this branch too. |
|
@ofborg build python311Packages.torch |
|
nixpkgs/pkgs/development/python-modules/torch/default.nix Lines 292 to 293 in 332d8dc We can likely fix the aarch64-darwin error by adding the following under this:
"-Wno-error=maybe-uninitialized"
"-Wno-error=stringop-overflow"I don't really want to over-complicate this PR with these kinds of fixes though and I have no way of actually testing darwin without annoying people with ofborg access until it works. |
|
Did ofborg tried to merge master before build? But https://github.com/NixOS/nixpkgs/pull/267209/checks?check_run_id=18767769137 shows it tried to build /nix/store/wy6alr3i3883c43ir6n20w0x7112j0n9-python3.11-torch-2.0.1.drv |
|
From the error message on
(A commit named The |
Cross-compilation code taken/modified from LLVM 16 derivation
Guard this option against 'stdenv.isDarwin', which currently is unknown whether it works or not.
c0b83bb to
e3d4bea
Compare

Description of changes
Fixes this comment: #263048 (comment)
Unsure how to test darwin, since it won't cross-compile.
This is why we're guarding
openai-tritonintorch: 8bb0f732cf7638a0749a26fe37b60db1032daf55Things 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/)