Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve wheel naming logic in ansible #8465

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Conversation

tengyifei
Copy link
Collaborator

This fixes #8406. The existing "Rename and append +YYYYMMDD suffix to nightly wheels" ansible action is pretty confusing since it operates on files in both pytorch/xla/dist and /tmp/staging-wheels. Inadvertently this causes the next "Add cxx11 suffix to wheels built with C++11 ABI" action to miss renaming
"torch_xla-2.6.0.dev-cp310-cp310-linux_x86_64.whl", which means we're uploading a C++11 ABI wheel to a non-C++11 location. I've refactored the ansible actions to only operate under /tmp/staging-wheels.

Under local ansible test runs:

When cxx_abi=0, ansible creates these files under /dist:

torch-2.6.0.dev-cp310-cp310-linux_x86_64.whl
torch-2.6.0.dev20241206-cp310-cp310-linux_x86_64.whl
torch_xla-2.6.0.dev-cp310-cp310-linux_x86_64.whl
torch_xla-2.6.0.dev20241206-cp310-cp310-linux_x86_64.whl
torchvision-0.19.0a0+d23a6e1-cp310-cp310-linux_x86_64.whl

When cxx_abi=1, ansible creates these files under /dist:

torch-2.6.0.dev.cxx11-cp310-cp310-linux_x86_64.whl
torch-2.6.0.dev20241206.cxx11-cp310-cp310-linux_x86_64.whl
torch_xla-2.6.0.dev.cxx11-cp310-cp310-linux_x86_64.whl
torch_xla-2.6.0.dev20241206.cxx11-cp310-cp310-linux_x86_64.whl
torchvision-0.19.0a0+d23a6e1.cxx11-cp310-cp310-linux_x86_64.whl

The files under /dist are then uploaded to GCS.

I also added documentation about C++11 ABI wheels to the README.

@tengyifei tengyifei requested review from bhavya01 and lsy323 December 6, 2024 04:31
@tengyifei tengyifei marked this pull request as ready for review December 6, 2024 04:31
This fixes #8406. The existing "Rename and append +YYYYMMDD suffix to
nightly wheels" ansible action is pretty confusing since it operates on
files in both pytorch/xla/dist and /tmp/staging-wheels. Inadvertently
this causes the next "Add cxx11 suffix to wheels built with C++11 ABI"
action to miss renaming
"torch_xla-2.6.0.dev-cp310-cp310-linux_x86_64.whl", which means we're
uploading a C++11 ABI wheel to a non-C++11 location. I've refactored the
ansible actions to only operate under /tmp/staging-wheels.

Under local ansible test runs:

When cxx_abi=0, ansible creates these files under /dist:

  torch-2.6.0.dev-cp310-cp310-linux_x86_64.whl
  torch-2.6.0.dev20241206-cp310-cp310-linux_x86_64.whl
  torch_xla-2.6.0.dev-cp310-cp310-linux_x86_64.whl
  torch_xla-2.6.0.dev20241206-cp310-cp310-linux_x86_64.whl
  torchvision-0.19.0a0+d23a6e1-cp310-cp310-linux_x86_64.whl

When cxx_abi=1, ansible creates these files under /dist:

  torch-2.6.0.dev.cxx11-cp310-cp310-linux_x86_64.whl
  torch-2.6.0.dev20241206.cxx11-cp310-cp310-linux_x86_64.whl
  torch_xla-2.6.0.dev.cxx11-cp310-cp310-linux_x86_64.whl
  torch_xla-2.6.0.dev20241206.cxx11-cp310-cp310-linux_x86_64.whl
  torchvision-0.19.0a0+d23a6e1.cxx11-cp310-cp310-linux_x86_64.whl

The files under /dist are then uploaded to GCS.

I also added documentation about C++11 ABI wheels to the README.
@ManfeiBai ManfeiBai added the tpuci label Dec 6, 2024
Copy link
Collaborator

@ManfeiBai ManfeiBai left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

@tengyifei tengyifei merged commit cff26e5 into master Dec 6, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Getting "undefined symbol: _ZN5torch4lazy13MetricFnValueB5cxx11E" with torch-xla nightly wheel for 2.6
3 participants