Use cuda 12.4 pytorch_extra_install_requirements as default (#138458)

Since cuda 12.4 binaries are default binaries on pypi now. The pytorch_extra_install_requirements need to use 12.4.
This would need to be cherry-picked to release 2.5 branch to avoid injecting these versions into metadata during pypi promotion.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/138458
Approved by: https://github.com/malfet
This commit is contained in:
atalman
2024-10-21 20:16:37 +00:00
committed by PyTorch MergeBot
parent c1ead6fba3
commit 60081c29ec
5 changed files with 31 additions and 31 deletions

View File

@ -459,7 +459,7 @@ def generate_wheels_matrix(
".", "_"
),
"pytorch_extra_install_requirements": (
PYTORCH_EXTRA_INSTALL_REQUIREMENTS["12.1"]
PYTORCH_EXTRA_INSTALL_REQUIREMENTS["12.4"]
if os != "linux" and gpu_arch_type != "xpu"
else ""
),