Skip to content

Commit e41cb1a

Browse files
authored
Merge pull request #5748 from martin-frbg/issue5747
Check that _Float16 is available before using it in openblas_config.h
2 parents 9b3cc78 + dc32a8a commit e41cb1a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

openblas_config_template.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ typedef uint16_t bfloat16;
4343
#if defined(OPENBLAS_ARCH_POWER) || defined(OPENBLAS_ARCH_LOONGARCH64)
4444
typedef bfloat16 hfloat16;
4545
#else
46+
#define __STDC_WANT_IEC_60559_TYPES_EXT__
47+
#include <float.h>
48+
#ifdef FLT16_MAX
4649
typedef _Float16 hfloat16;
50+
#else
51+
typedef uint16_t hfloat16;
4752
#endif
4853
#else
4954
#include <stdint.h>

0 commit comments

Comments
 (0)