From 04e7aab842be9b6cd523ef9bdc37353b020e2763 Mon Sep 17 00:00:00 2001 From: Florian Ziesche Date: Mon, 1 Apr 2024 18:00:24 +0200 Subject: [PATCH] * soft_f16: disable native fp16 support on x86 macOS --- constexpr/soft_f16.hpp | 2 +- floor/build_version | 2 +- floor/build_version.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/constexpr/soft_f16.hpp b/constexpr/soft_f16.hpp index 125415d7..71e61e47 100644 --- a/constexpr/soft_f16.hpp +++ b/constexpr/soft_f16.hpp @@ -41,7 +41,7 @@ using namespace std; #include // TODO: detect arm targets on non-apple platforms -#if defined(__APPLE__) // prefer __fp16 over f16c support +#if defined(__APPLE__) && !defined(__x86_64__) #define FLOOR_HAS_NATIVE_FP16 1 #elif defined(__F16C__) #define FLOOR_HAS_NATIVE_FP16 2 diff --git a/floor/build_version b/floor/build_version index 3deb4186..016a1917 100644 --- a/floor/build_version +++ b/floor/build_version @@ -1 +1 @@ -13845 +13847 diff --git a/floor/build_version.hpp b/floor/build_version.hpp index 8a0d24ea..98e89939 100644 --- a/floor/build_version.hpp +++ b/floor/build_version.hpp @@ -1 +1 @@ -#define FLOOR_BUILD_VERSION 13845 +#define FLOOR_BUILD_VERSION 13847