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

pytest --fork makes test easily hang #94

Open
tengyifei opened this issue Feb 7, 2025 · 0 comments
Open

pytest --fork makes test easily hang #94

tengyifei opened this issue Feb 7, 2025 · 0 comments

Comments

@tengyifei
Copy link
Collaborator

We currently run pytest with the --fork flag because:

  • If you call torch_xla use_spmd, then that will contaminate every test in the process to use SPMD
  • torch_xla and torchax tests cannot coexist in one process

But --fork causes other issues:

  • If anything at the top of the test imports torchax or jax, then the test body will hang, because JAX doesn't like fork
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

No branches or pull requests

1 participant