Skip to content

Fix CPU tests for python 3.12#9443

Merged
bhavya01 merged 4 commits intomasterfrom
312_tpu_ci
Jul 9, 2025
Merged

Fix CPU tests for python 3.12#9443
bhavya01 merged 4 commits intomasterfrom
312_tpu_ci

Conversation

@bhavya01
Copy link
Copy Markdown
Collaborator

@bhavya01 bhavya01 commented Jul 2, 2025

  • Remove py::bytes out of NoGil section as it is undefined behavior and causes segfault
  • Skip the torch test TestTensorDeviceOpsXLA as it doesn't run any tests and causes the whole test suite to fail

@bhavya01 bhavya01 changed the title Test CI Fix CPU tests for python 3.12 Jul 7, 2025
@bhavya01 bhavya01 marked this pull request as ready for review July 7, 2025 19:12
@bhavya01 bhavya01 requested review from pgmoka and zhanyong-wan July 7, 2025 19:12
Copy link
Copy Markdown
Collaborator

@zhanyong-wan zhanyong-wan left a comment

Choose a reason for hiding this comment

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

Thanks!

Comment thread setup.py
Comment thread test/run_tests.sh
Comment thread torch_xla/csrc/init_python_bindings.cpp Outdated
Comment thread torch_xla/csrc/init_python_bindings.cpp
Copy link
Copy Markdown
Collaborator

@pgmoka pgmoka left a comment

Choose a reason for hiding this comment

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

Mostly interested in the follow-up from Zhanyong comments.

Comment thread torch_xla/csrc/init_python_bindings.cpp Outdated
Comment thread torch_xla/csrc/init_python_bindings.cpp Outdated
Comment thread torch_xla/csrc/init_python_bindings.cpp
Comment thread test/run_tests.sh
Comment thread torch_xla/csrc/init_python_bindings.cpp
@bhavya01 bhavya01 merged commit 5d05f0a into master Jul 9, 2025
22 of 24 checks passed
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.

4 participants