Skip to content

Commit 3708b98

Browse files
cyyevermeta-codesync[bot]
authored andcommitted
Check arm_neon_sve_bridge.h header (#4967)
Summary: Pull Request resolved: #4967 X-link: https://github.com/facebookresearch/FBGEMM/pull/1985 aarch64 can fail even if CMake `FBGEMM_BUILD_SVE` is false. We have to check the existence of `arm_neon_sve_bridge.h`. Pull Request resolved: #4959 Reviewed By: cthi Differential Revision: D83713749 Pulled By: q10 fbshipit-source-id: e8ec848e12c022c7a2373e93764da2fe46f43476
1 parent eee643b commit 3708b98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/fbgemm/Utils.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
#include <type_traits>
2222

2323
#ifndef HAVE_SVE
24-
#if defined(__aarch64__) && __ARM_FEATURE_SVE
24+
#if defined(__aarch64__) && __ARM_FEATURE_SVE && \
25+
__has_include(<arm_neon_sve_bridge.h>)
2526
#define HAVE_SVE 1
2627
#else
2728
#define HAVE_SVE 0

0 commit comments

Comments
 (0)