Skip to content

Commit 2ab964e

Browse files
committed
allow sm89 for fp8 types
Signed-off-by: Masaki Kozuki <[email protected]>
1 parent 35ca2e9 commit 2ab964e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

thunder/executors/nvfuserex_impl.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ def is_supported_devicetype(devicetype: DeviceType) -> bool:
161161

162162

163163
def device_supports_fp8() -> bool:
164-
cuda_major, _ = torch.cuda.get_device_capability()
165-
return cuda_major > 8
164+
cuda_major, cuda_minor = torch.cuda.get_device_capability()
165+
return (cuda_major, cuda_minor) >= (8, 9)
166166

167167

168168
def is_supported_dtype(dtype: type | dtypes.dtype, *, allow_low_precision_floats: bool = True) -> bool:

0 commit comments

Comments
 (0)