mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
disable bfloat16 from ptx tests (#4305)
This commit is contained in:
@@ -25,7 +25,7 @@ def assert_jit_cache_len(fxn, expected_len):
|
||||
def is_dtype_supported(dtype: DType, device: str = Device.DEFAULT):
|
||||
if dtype == dtypes.bfloat16:
|
||||
# NOTE: this requires bf16 buffer support
|
||||
return device in {"RHIP", "HSA"} or (device == "CUDA" and not CI)
|
||||
return device in {"RHIP", "HSA"} or (device == "CUDA" and not CI and not getenv("PTX"))
|
||||
if device in ["WEBGPU", "WEBGL"]: return dtype in [dtypes.float, dtypes.int32, dtypes.uint32]
|
||||
if device == "CUDA" and getenv("PTX") and dtype in (dtypes.int8, dtypes.uint8): return False
|
||||
# for CI GPU and OSX, cl_khr_fp16 isn't supported
|
||||
|
||||
Reference in New Issue
Block a user