From 3a5bcbb0ddf5ab5302f2dc114d0d148bb82b54c4 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 26 Feb 2021 14:10:13 -0800 Subject: [PATCH] configure: Additional half-precision type checks. --- configure.ac | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index fa6cfaf9e..fda67c353 100644 --- a/configure.ac +++ b/configure.ac @@ -990,9 +990,12 @@ AC_CHECK_TYPES([__uint128_t]) AC_CHECK_SIZEOF([__uint128_t]) dnl Gauge the support of experimental compact floating point formats -AC_CHECK_SIZEOF([__fp16]) -AC_CHECK_SIZEOF([__bf16]) +AC_CHECK_TYPES([_Float16]) AC_CHECK_SIZEOF([_Float16]) +AC_CHECK_TYPES([__fp16]) +AC_CHECK_SIZEOF([__fp16]) +AC_CHECK_TYPES([__bf16]) +AC_CHECK_SIZEOF([__bf16]) dnl -fsigned-char ensures 'char' is signed on all platforms RB_VAR_PREPEND([CFLAGS], ["-fsigned-char"])