mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
[CI] Fixes CI for CUDA Version > 12.9 (#157385)
Compute capabilities older than volta (inclusive) is no longer supported in CUDA Version > 12.9 Pull Request resolved: https://github.com/pytorch/pytorch/pull/157385 Approved by: https://github.com/eqy
This commit is contained in:
committed by
PyTorch MergeBot
parent
22d82222c6
commit
a9f84021fb
@ -322,12 +322,15 @@ class TestCppExtensionJIT(common.TestCase):
|
||||
[f"{capability[0]}{capability[1]}" for capability in capabilities],
|
||||
None,
|
||||
),
|
||||
"Maxwell+Tegra;6.1": (["53", "61"], None),
|
||||
"Volta": (["70"], ["70"]),
|
||||
}
|
||||
archflags["7.5+PTX"] = (["75"], ["75"])
|
||||
archflags["5.0;6.0+PTX;7.0;7.5"] = (["50", "60", "70", "75"], ["60"])
|
||||
if int(torch.version.cuda.split(".")[0]) < 12:
|
||||
major, minor = map(int, torch.version.cuda.split(".")[:2])
|
||||
if major < 12 or (major == 12 and minor <= 9):
|
||||
# Compute capability <= 7.0 is only supported up to CUDA 12.9
|
||||
archflags["Maxwell+Tegra;6.1"] = (["53", "61"], None)
|
||||
archflags["Volta"] = (["70"], ["70"])
|
||||
archflags["5.0;6.0+PTX;7.0;7.5"] = (["50", "60", "70", "75"], ["60"])
|
||||
if major < 12:
|
||||
# CUDA 12 drops compute capability < 5.0
|
||||
archflags["Pascal 3.5"] = (["35", "60", "61"], None)
|
||||
|
||||
|
Reference in New Issue
Block a user