Skip to content

Commit 1ff3a1a

Browse files
authored
Merge pull request #5670 from amritahs-ibm/handle_fp16_power
powerpc: Bypass FP16 as BF16 on Power
2 parents 55b16e5 + 1a708ba commit 1ff3a1a

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)