Skip to content

Commit 35023b0

Browse files
[TUTORIAL][Intel] Fix 09-persistent-matmul.py
Signed-off-by: Whitney Tsang <[email protected]>
1 parent 57083c7 commit 35023b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/tutorials/09-persistent-matmul.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def supports_tma():
7777

7878

7979
def is_hopper():
80-
return torch.cuda.get_device_capability()[0] == 9
80+
return is_cuda() and torch.cuda.get_device_capability()[0] == 9
8181

8282

8383
def supports_ws():

0 commit comments

Comments
 (0)