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.
2 parents 1bd6d43 + fa0c2bd commit ba67e72Copy full SHA for ba67e72
python/triton/_internal_testing.py
@@ -142,11 +142,13 @@ def to_numpy(x):
142
143
144
def supports_tma(byval_only=False):
145
+ if not is_cuda():
146
+ return False
147
_, cuda_version = _path_to_binary("ptxas")
148
min_cuda_version = (12, 0) if byval_only else (12, 3)
149
cuda_version_tuple = tuple(map(int, cuda_version.split(".")))
150
assert len(cuda_version_tuple) == 2, cuda_version_tuple
- return is_cuda() and torch.cuda.get_device_capability()[0] >= 9 and cuda_version_tuple >= min_cuda_version
151
+ return torch.cuda.get_device_capability()[0] >= 9 and cuda_version_tuple >= min_cuda_version
152
153
154
def tma_skip_msg(byval_only=False):
0 commit comments