Skip to content

Commit

Permalink
Fix _Float16 detection on ARM64 GCC<13 (#8401)
Browse files Browse the repository at this point in the history
GCC 12 only supports _Float16 on x86. Support for ARM was added in
GCC 13. This causes a build failure in the manylinux_2_28 images.
  • Loading branch information
alexreinking authored Aug 29, 2024
1 parent 45518ac commit b87f2b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/HalideRuntime.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ extern "C" {
// For now, we say that if >= v12, and compiling on x86 or arm,
// we assume support. This may need revision.
#if defined(__GNUC__) && (__GNUC__ >= 12)
#if defined(__x86_64__) || (defined(__i386__) && (__GNUC__ >= 14) && defined(__SSE2__)) || defined(__arm__) || defined(__aarch64__)
#if defined(__x86_64__) || (defined(__i386__) && (__GNUC__ >= 14) && defined(__SSE2__)) || ((defined(__arm__) || defined(__aarch64__)) && (__GNUC__ >= 13))
#define HALIDE_CPP_COMPILER_HAS_FLOAT16
#endif
#endif
Expand Down

0 comments on commit b87f2b1

Please sign in to comment.