Use __HAVE_BFLOAT__ to check for bfloat support instead of metal version check (#1540)

This commit is contained in:
ivarflakstad
2024-01-10 18:50:30 +01:00
committed by GitHub
parent ae06cb74bb
commit d3bdd788cf
6 changed files with 6 additions and 6 deletions

View File

@ -105,7 +105,7 @@ INT64_BINARY_OP_OUT(ge, x >= y)
INT64_BINARY_OP_OUT(gt, x > y)
#endif
#if __METAL_VERSION__ >= 310
#if defined(__HAVE_BFLOAT__)
BFLOAT_BINARY_OP(x + y, add)
BFLOAT_BINARY_OP(x - y, sub)
BFLOAT_BINARY_OP(x * y, mul)