Skip to content

Avoid bad-fork JIT arch probing#7977

Draft
tohtana wants to merge 2 commits intomasterfrom
tohtana/fix-ci-bad-fork-jit-arch-detection
Draft

Avoid bad-fork JIT arch probing#7977
tohtana wants to merge 2 commits intomasterfrom
tohtana/fix-ci-bad-fork-jit-arch-detection

Conversation

@tohtana
Copy link
Copy Markdown
Collaborator

@tohtana tohtana commented Apr 16, 2026

Currently the CI full test shows a CUDA reinit error.

This PR addresses the issue by fixing compute_capability_args() in JIT mode to read TORCH_CUDA_ARCH_LIST before calling torch.cuda.get_device_capability() and restores JIT builder state after jit_load(). It also adds regression tests for the explicit-arch, bad-fork, and restore paths.

Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
@tohtana tohtana closed this Apr 16, 2026
@tohtana tohtana reopened this Apr 16, 2026
Signed-off-by: Masahiro Tanaka <mtanaka@anyscale.com>
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.

1 participant