File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ is_avx512_disabled(AVX512_DISABLED)
8888
8989if (MACOSX_FOUND AND CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64" )
9090 message (STATUS "Apple Silicon Detected" )
91+ set (APPLE_SILICON_FOUND TRUE )
9192 set (ENABLE_NUMA OFF )
9293 check_sysctl(hw.optional .neon ASIMD_FOUND)
9394 check_sysctl(hw.optional .arm.FEAT_BF16 ARM_BF16_FOUND)
@@ -189,7 +190,7 @@ else()
189190 set (USE_ACL OFF )
190191endif ()
191192
192- if ((AVX512_FOUND AND NOT AVX512_DISABLED) OR ASIMD_FOUND OR POWER9_FOUND OR POWER10_FOUND OR POWER11_FOUND)
193+ if ((AVX512_FOUND AND NOT AVX512_DISABLED) OR ( ASIMD_FOUND AND NOT APPLE_SILICON_FOUND) OR POWER9_FOUND OR POWER10_FOUND OR POWER11_FOUND)
193194 FetchContent_Declare(
194195 oneDNN
195196 GIT_REPOSITORY https://github.com/oneapi-src/oneDNN.git
You can’t perform that action at this time.
0 commit comments