We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 390ea60 commit 5c616e2Copy full SHA for 5c616e2
torch/cuda/__init__.py
@@ -262,7 +262,9 @@ def _check_capability():
262
"12.9": {"min": 70, "max": 120},
263
}
264
265
- if torch.version.cuda is not None: # on ROCm we don't want this check
+ if (
266
+ torch.version.cuda is not None and torch.cuda.get_arch_list()
267
+ ): # on ROCm we don't want this check
268
for d in range(device_count()):
269
capability = get_device_capability(d)
270
major = capability[0]
0 commit comments