mirror of
https://github.com/huggingface/candle.git
synced 2025-06-21 12:20:46 +00:00
Use __HAVE_BFLOAT__ to check for bfloat support instead of metal version check (#1540)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user