Skip to content

Do not set PJRT_DEVICE=CUDA automatically on import.#9540

Merged
ysiraichi merged 1 commit intomasterfrom
ysiraichi/remove-cuda-detection-runtime-init
Aug 5, 2025
Merged

Do not set PJRT_DEVICE=CUDA automatically on import.#9540
ysiraichi merged 1 commit intomasterfrom
ysiraichi/remove-cuda-detection-runtime-init

Conversation

@ysiraichi
Copy link
Copy Markdown
Collaborator

This is part of the XLA:CUDA deprecation process.

Since we are deprecating it, we should not select it automatically when calling import torch_xla. Users can still select it manually by setting the environment variable PJRT_DEVICE=CUDA before execution.

@ysiraichi ysiraichi changed the title Remove CUDA detection from runtime initialization. Do not set PJRT_DEVICE=CUDA automatically on import. Aug 5, 2025
@ysiraichi ysiraichi merged commit 15496cd into master Aug 5, 2025
23 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.

2 participants