Skip to content

Improve wheel naming logic in ansible#8465

Merged
tengyifei merged 1 commit intomasterfrom
yifeit/fix-nightly-cxx11
Dec 6, 2024
Merged

Improve wheel naming logic in ansible#8465
tengyifei merged 1 commit intomasterfrom
yifeit/fix-nightly-cxx11

Conversation

@tengyifei
Copy link
Copy Markdown
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
Copy Markdown
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

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