Open xiaobao520123 opened 1 month ago
I've run into the same problem. Following https://github.com/google/highway/issues/2356, I tried setting -DHWY_DISABLED_TARGETS=HWY_ALL_SVE
in vectorlite/vcpkg/ports/highway/portfile.cmake
, but that didn't work (seems that that flag would be passed to CMake, and does not affect preprocessor definitions)
Did you manage to get this to work?
I've run into the same problem. Following google/highway#2356, I tried setting
-DHWY_DISABLED_TARGETS=HWY_ALL_SVE
invectorlite/vcpkg/ports/highway/portfile.cmake
, but that didn't work (seems that that flag would be passed to CMake, and does not affect preprocessor definitions)Did you manage to get this to work?
yeah, I've contacted the author and he also suggested adding the flag to highway. But CMake would never pass this flag down into the library. So I installed LLVM 15 using Homebrew and switch the toolchain from Xcode to LLVM. And it works in my case to compile vectorlite on my M1 Max machine.
Hi, Highway TL here. The recommended -DHWY_DISABLED_TARGETS=HWY_ALL_SVE
is a compiler flag and can be passed there via CMake by export CXXFLAGS=-DHWY_DISABLED_TARGETS=HWY_ALL_SVE
before running CMake.
FYI we are also in touch with Arm on fixing this compiler issue.
I'm using 2021 M1 Max MacBook Pro to compile vectorlite. One of its dependenies, highway, is using SVE which Apple-Silicon Macs don't support.