Skip to content

Fix Docker build failure for cuda-windows image by using CUDA_VERSION build arg#18456

Merged
manuelcandales merged 1 commit intorelease/1.2from
cherry-pick-18435-by-pytorch_bot_bot_
Mar 24, 2026
Merged

Fix Docker build failure for cuda-windows image by using CUDA_VERSION build arg#18456
manuelcandales merged 1 commit intorelease/1.2from
cherry-pick-18435-by-pytorch_bot_bot_

Conversation

@pytorchbot
Copy link
Copy Markdown
Collaborator

The install_cuda_windows_cross_compile.sh script was querying PyTorch for its CUDA version, but PyTorch gets installed indirectly via pip dependencies (torchsr, timm) even when SKIP_PYTORCH=yes. This causes a failure if the pip-installed PyTorch reports a CUDA version which isn't in the version map. Pass the CUDA_VERSION Docker build arg to the script and prefer it over querying PyTorch.

… build arg (#18435)

The install_cuda_windows_cross_compile.sh script was querying PyTorch
for its CUDA version, but PyTorch gets installed indirectly via pip
dependencies (torchsr, timm) even when SKIP_PYTORCH=yes. This causes a
failure if the pip-installed PyTorch reports a CUDA version which isn't
in the version map. Pass the CUDA_VERSION Docker build arg to the script
and prefer it over querying PyTorch.

(cherry picked from commit 10d84aa)
@pytorch-bot
Copy link
Copy Markdown

pytorch-bot Bot commented Mar 24, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/18456

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 24, 2026
@manuelcandales manuelcandales merged commit cc5698a into release/1.2 Mar 24, 2026
194 of 197 checks passed
@manuelcandales manuelcandales deleted the cherry-pick-18435-by-pytorch_bot_bot_ branch March 24, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants