Skip to content

Commit 1a708ba

Browse files
committed
powerpc: Bypass FP16 as BF16 on Power
typedef FP16 as BF16 on Power as FP16 is not yet supported
1 parent 75e2f12 commit 1a708ba

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

openblas_config_template.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ typedef uint16_t bfloat16;
4040
#endif
4141

4242
#if defined(__GNUC__) && (__GNUC__ > 12)
43+
#if defined(OPENBLAS_ARCH_POWER)
44+
typedef bfloat16 hfloat16;
45+
#else
4346
typedef _Float16 hfloat16;
47+
#endif
4448
#else
4549
#include <stdint.h>
4650
typedef uint16_t hfloat16;

0 commit comments

Comments
 (0)