Skip to content

Commit

Permalink
Fix NATIVE_FP16 macro in our fork of half.h
Browse files Browse the repository at this point in the history
Simple build unbreak for Raspberry Pi 5 -- fp16 is an optional aarch64 feature.
  • Loading branch information
swolchok committed Dec 27, 2024
1 parent ed15042 commit 31cc29b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/core/portable_type/half.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <ostream>

#if defined(__GNUC__) || defined(__clang__)
#if defined(__aarch64__)
#if defined(__aarch64__) && defined(__ARM_FEATURE_FP16)
#ifndef __ARM_V8_ONLY__
#define NATIVE_FP16 1
#endif // __ARM_V8_ONLY__
Expand Down

0 comments on commit 31cc29b

Please sign in to comment.