Skip to content

Commit 28af668

Browse files
committed
allow sm89 for fp8 types
Signed-off-by: Masaki Kozuki <[email protected]>
1 parent 40f7972 commit 28af668

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
@@ -164,8 +164,8 @@ def is_supported_devicetype(devicetype: DeviceType) -> bool:
164164

165165

166166
def device_supports_fp8() -> bool:
167-
cuda_major, _ = torch.cuda.get_device_capability()
168-
return cuda_major > 8
167+
cuda_major, cuda_minor = torch.cuda.get_device_capability()
168+
return (cuda_major, cuda_minor) >= (8, 9)
169169

170170

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

0 commit comments

Comments
 (0)