Open Cryolitia opened 1 day ago
Hi, unfortunately cmake does not provide built-in way to check arhitecture, and at the moment you need to disable explicitly simd usage in libunicode with cmake flag -DLIBUNICODE_SIMD_IMPLEMENTATION=none
In the future we want to add vector extenstion riscv usage, but for now we do not support simd for riscv
Thanks so much for your response!
I would like to know one more not too related thing. If I compile it with SIMD enabled, what would happened while running it on a x86_64-v1 hardware. It's important for us distros maintainers, because most distros' package baseline is x86_64-v1, we would like to promise its availability on it, as a result of that SIMD is enabled by default that some distros may not notice it.
update:
cmake does not provide built-in way to check arhitecture
Could we use https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_PROCESSOR.html
Yes, we can try to check if during cmake configuration.
As for the SIMD support, at the moment intrinsics are using SSE2, so x86_64-v1
, in the future this usage will be preserved and ideally checked at run-time which SIMD implementation we can use (https://github.com/contour-terminal/libunicode/pull/108)
Link: https://archriscv.felixc.at/.status/log.htm?url=logs/libunicode/libunicode-0.6.0-2.log