Skip to content

[ROCm] Make AOTriton bundling optional via BUILD_AOTRITON_INTO_WHEEL flag - #182030

Open
LunNova wants to merge 1 commit into
pytorch:mainfrom
LunNova:lunnova/aotriton-bundle-flag
Open

LunNova wants to merge 1 commit into
pytorch:mainfrom
LunNova:lunnova/aotriton-bundle-flag

Conversation

@LunNova

@LunNova LunNova commented Apr 30, 2026 •

Copy link
Copy Markdown

Previously AOTriton was always copied to Torch's output/wheel. This is unnecessary and can waste a gigabyte of space easily for distros which have AOTriton as an installable package.

Adding this flag lets us avoid duplicating AOTriton in NixOS/Nixpkgs' ROCm torch output. NixOS/nixpkgs#515088

cc @jeffdaily @sunway513 @jithunnair-amd @pruthvistony @ROCmSupport @jataylo @hongxiayang @naromero77amd @pragupta @jerrymannil @xinyazhang

…` flag

Previously AOTriton was always copied to Torch's output/wheel.
This is unnecessary and can waste a gigabyte of space easily for distros
which have AOTriton as an installable package.
@pytorch-bot

pytorch-bot Bot commented Apr 30, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/182030

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot Bot added the module: rocm AMD GPU support for Pytorch label Apr 30, 2026
@linux-foundation-easycla

linux-foundation-easycla Bot commented Apr 30, 2026 •

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: LunNova / name: Luna Nova (6ed1a4d)

@LunNova

LunNova commented Apr 30, 2026

Copy link
Copy Markdown
Author

@pytorchbot label "topic: not user facing"

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Apr 30, 2026
LunNova added a commit to LunNova/nixpkgs that referenced this pull request Apr 30, 2026
Avoids duplicating AOTriton in torch's store path.
Vendors PR pytorch/pytorch#182030
# adding hundreds of MiB and avoiding a separate AOTriton install
# For distros which have AOTriton as an installable package this can be disabled
# to avoid duplicating AOTriton into torch
option(BUILD_AOTRITON_INTO_WHEEL "Copy AOTriton lib/ and include/ into the torch install tree so they ship in the wheel" ON)

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Name isn't amazing, constrained by only USE_ and BUILD_ prefixed env vars being passed on by torch's setup.py.

@albanD albanD added the triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module label Apr 30, 2026
@albanD
albanD requested a review from malfet April 30, 2026 16:33
@github-actions

Copy link
Copy Markdown
Contributor

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions Bot added the Stale label Jun 29, 2026
@LunNova

LunNova commented Jun 29, 2026

Copy link
Copy Markdown
Author

This is still needed, and is being applied in NixOS/nixpkgs so we can avoid shipping two copies of AOTriton.

@LunNova

LunNova commented Jun 29, 2026

Copy link
Copy Markdown
Author

@pytorchbot label "no-stale"

@pytorch-bot pytorch-bot Bot added the no-stale label Jun 29, 2026
@LunNova

LunNova commented Jun 29, 2026

Copy link
Copy Markdown
Author

@albanD can you assign another reviewer?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: rocm AMD GPU support for Pytorch no-stale open source Stale topic: not user facing topic category triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants