Skip to content

python3Packages.triton: 3.7.1 -> 3.8.0; python3Packages.torch: 2.13.0 -> 2.14.1 - #559522

Merged
GaetanLepage merged 4 commits into
NixOS:masterfrom
GaetanLepage:update/python3Packages.torch-2-14
Oct 22, 2026
Merged

GaetanLepage merged 4 commits into
NixOS:masterfrom
GaetanLepage:update/python3Packages.torch-2-14

Conversation

@GaetanLepage

@GaetanLepage GaetanLepage commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Things done

  • triton-llvm: 23.0.0-unstable-2026-06-16 -> 23.0.0-unstable-2026-08-17
  • python3Packages.triton: 3.7.1 -> 3.8.0 (Changelog, Diff)
  • python3Packages.torch: 2.13.0 -> 2.14.1 (Changelog, Diff)
  • python3Packages.torchvision: 0.28.0 -> 0.29.1 (Changelog, Diff)

cc @teh @thoughtpolice @tscholak @junjihashimoto @ericsagnes @ethancedwards8
cc @NixOS/cuda-maintainers
cc @LunNova

Previous update: #519925, #519914 (bin)

@nixpkgs-branch-check nixpkgs-branch-check Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR's base branch is set to master, and this PR causes 728 rebuilds.
Please consider whether this PR causes a mass rebuild according to our conventions.
If it does cause a mass rebuild, please change the base branch to the right base branch for your changes (probably staging).
If it does not cause a mass rebuild, this message can be ignored.

@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 501-1000 This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-darwin: 501-1000 This PR causes many rebuilds on Darwin and should normally target the staging branches. 6.topic: python Python is a high-level, general-purpose programming language. labels Sep 3, 2026
@anund anund mentioned this pull request Sep 11, 2026
4 tasks done
@GaetanLepage
GaetanLepage force-pushed the update/python3Packages.torch-2-14 branch from cb25d14 to 67ea5d3 Compare October 11, 2026 22:07
@GaetanLepage GaetanLepage changed the title python3Packages.triton: 3.7.1 -> 3.8.0; python3Packages.torch: 2.13.0 -> 2.14.0 python3Packages.triton: 3.7.1 -> 3.8.0; python3Packages.torch: 2.13.0 -> 2.14.1 Oct 11, 2026
@anund

anund commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

@ConnorBaker

ConnorBaker commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

triton-llvm from this PR fails to build for me on aarch64-linux (Nixpkgs master 86c5d7a4 with the triton-llvm and triton commits of this PR applied; GCC 16.2.0, binutils 2.46). The final link of the multicall bin/llvm fails:

FAILED: [code=1] bin/llvm
ld.bfd: tools/llvm-debuginfod/CMakeFiles/obj.llvm-debuginfod.dir/llvm-debuginfod.cpp.o: undefined reference to symbol '_ZN4llvm10HTTPServer6listenEv'
ld.bfd: /build/source/llvm/build/./lib/libLLVMHTTP.so.23.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

The new source (triton-lang/llvm-project@5f07f818) includes llvm/llvm-project#191202, which moved the HTTP client/server out of LLVMDebuginfod into a separate LLVMHTTP library. That change added LLVMHTTP next to LLVMDebuginfod for every tool that links it (llvm-debuginfod, llvm-objdump, llvm-symbolizer, llvm-cov, …), but those target_link_libraries calls are skipped under LLVM_TOOL_LLVM_DRIVER_BUILD, and llvm/tools/llvm-driver/CMakeLists.txt still only has:

target_link_libraries(llvm-driver PUBLIC LLVMDebuginfod)

LLVMDebuginfod links LLVMHTTP privately, so with BUILD_SHARED_LIBS and ld.bfd's default --no-copy-dt-needed-entries, the driver can't resolve llvm-debuginfod.cpp's direct HTTPServer calls. The previous source (llvm/llvm-project@1f126a6d) predates the split, which is why the current triton-llvm builds (it's cached for aarch64-linux). Upstream main still has the same llvm-driver link line, so this isn't specific to the Triton fork.

Adding LLVMHTTP to the driver's link line fixes it for me:

postPatch = ''
  # ...
  substituteInPlace llvm/tools/llvm-driver/CMakeLists.txt \
    --replace-fail \
      "target_link_libraries(llvm-driver PUBLIC LLVMDebuginfod)" \
      "target_link_libraries(llvm-driver PUBLIC LLVMDebuginfod LLVMHTTP)"
'';

With that, bin/llvm links ([8945/8988] Linking CXX executable bin/llvm) and the build continues; the rest of the triton-llvm build is still running here and I'll follow up if anything else breaks. (Alternatively, LLVM_TOOL_LLVM_DRIVER_BUILD = false would sidestep it at the cost of the space savings.)

This comment was drafted with Claude Code (Claude Opus 5.5) from my build logs.

@anund

anund commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

CMAKE_INSTALL_PREFIX changes from /build/pytorch/torch on 2.13 to /build/tmpfsyw2uas/wheel/platlib/torch on 2.14. At least on the rocm build. Manually setting it allows rocm to build rather than error.

To figure out if this is a rocm specific issue: if you have a cuda build please check what the cmake summary prints for that value.

Adjacent discussion here? pytorch/pytorch#191494

@GaetanLepage
GaetanLepage force-pushed the update/python3Packages.torch-2-14 branch 2 times, most recently from 6f1b56f to 1a02434 Compare October 14, 2026 20:24
@GaetanLepage

Copy link
Copy Markdown
Contributor Author

CMAKE_INSTALL_PREFIX changes from /build/pytorch/torch on 2.13 to /build/tmpfsyw2uas/wheel/platlib/torch on 2.14. At least on the rocm build. Manually setting it allows rocm to build rather than error.

To figure out if this is a rocm specific issue: if you have a cuda build please check what the cmake summary prints for that value.

Adjacent discussion here? pytorch/pytorch#191494

I pushed a fix. It should work now.

@anund

anund commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Builds clean, thank you.

@SuperSandro2000

Copy link
Copy Markdown
Member

Is torch-bin also planned to be updated?

@GaetanLepage
GaetanLepage force-pushed the update/python3Packages.torch-2-14 branch 2 times, most recently from 7bb28bb to 05e48cf Compare October 21, 2026 09:21
@GaetanLepage

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 559522 --extra-nixpkgs-config '{ allowUnfree = true; cudaSupport = true; }' --package python3Packages.torch.tests --package python313Packages.torch
Commit: 58d78cbd05f5efd43937a5d3004cb0e3d2890706


x86_64-linux

✅ 8 tests built:
  • python3Packages.torch.tests.tester-compileCuda
  • python3Packages.torch.tests.torchvision
  • python3Packages.torch.tests.torchcodec
  • python3Packages.torch.tests.mnist-example
  • python3Packages.torch.tests.tester-cudaAvailable
  • python3Packages.torch.tests.tester-compileCpu
  • python3Packages.torch.tests.compileCpu
  • python3Packages.torch.tests.torchaudio
✅ 1 package built:
  • python313Packages.torch

@GaetanLepage
GaetanLepage force-pushed the update/python3Packages.torch-2-14 branch from 58d78cb to 64c3bdc Compare October 22, 2026 12:43
@GaetanLepage

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 559522 --package python3Packages.torch.tests --package python313Packages.torch
Commit: 64c3bdc00ff718bd4a3e45f720b8c878a0689314


x86_64-linux

✅ 6 tests built:
  • python3Packages.torch.tests.torchvision
  • python3Packages.torch.tests.torchcodec
  • python3Packages.torch.tests.mnist-example
  • python3Packages.torch.tests.torchaudio
  • python3Packages.torch.tests.compileCpu
  • python3Packages.torch.tests.tester-compileCpu
✅ 1 package built:
  • python313Packages.torch

aarch64-linux

✅ 6 tests built:
  • python3Packages.torch.tests.tester-compileCpu
  • python3Packages.torch.tests.compileCpu
  • python3Packages.torch.tests.torchvision
  • python3Packages.torch.tests.mnist-example
  • python3Packages.torch.tests.torchcodec
  • python3Packages.torch.tests.torchaudio
✅ 1 package built:
  • python313Packages.torch

aarch64-darwin

✅ 6 tests built:
  • python3Packages.torch.tests.tester-compileCpu
  • python3Packages.torch.tests.compileCpu
  • python3Packages.torch.tests.torchvision
  • python3Packages.torch.tests.torchcodec
  • python3Packages.torch.tests.torchaudio
  • python3Packages.torch.tests.mnist-example
✅ 1 package built:
  • python313Packages.torch

@GaetanLepage

Copy link
Copy Markdown
Contributor Author

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 559522 --extra-nixpkgs-config '{ allowUnfree = true; cudaSupport = true; }' --package python313Packages.torch --package python3Packages.torch.tests
Commit: 64c3bdc00ff718bd4a3e45f720b8c878a0689314


x86_64-linux

✅ 8 tests built:
  • python3Packages.torch.tests.tester-compileCpu
  • python3Packages.torch.tests.tester-cudaAvailable
  • python3Packages.torch.tests.torchvision
  • python3Packages.torch.tests.torchcodec
  • python3Packages.torch.tests.mnist-example
  • python3Packages.torch.tests.tester-compileCuda
  • python3Packages.torch.tests.compileCpu
  • python3Packages.torch.tests.torchaudio
✅ 1 package built:
  • python313Packages.torch

@ConnorBaker ConnorBaker self-assigned this Oct 22, 2026
@ConnorBaker ConnorBaker added the 6.topic: cuda Parallel computing platform and API label Oct 22, 2026
@nixpkgs-ci nixpkgs-ci Bot added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 22, 2026
@GaetanLepage
GaetanLepage added this pull request to the merge queue Oct 22, 2026
Merged via the queue into NixOS:master with commit 78b26e1 Oct 22, 2026
32 checks passed
@github-project-automation github-project-automation Bot moved this from New to ✅ Done in CUDA Team Oct 22, 2026
@GaetanLepage
GaetanLepage deleted the update/python3Packages.torch-2-14 branch October 22, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: cuda Parallel computing platform and API 6.topic: python Python is a high-level, general-purpose programming language. 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 501-1000 This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-linux: 501-1000 This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

4 participants