-
-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SIMD is wrongly enabled while building on riscv64gc #109
Comments
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 |
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:
Could we use https://cmake.org/cmake/help/latest/variable/CMAKE_SYSTEM_PROCESSOR.html |
Yes, we can try to check if during cmake configuration. |
@Yaraslaut we should be able to runtime detect architecture by using Otherwise, shouldn't something like this work as well? if(CMAKE_SYSTEM_PROCESSOR STREQUAL "riscv64gc")
set(LIBUNICODE_SIMD_IMPLEMENTATION none) # currently unsupported on risckv64gc
endif() |
|
I just copy'n'pasted the word from the title. I don't have any RISCV experience nor access. If that works, we can gladly add it to the CMakeLists.txt. Could you confirm this then? |
Sorry for lont time AFK. I have create a PR: #110 |
Link: https://archriscv.felixc.at/.status/log.htm?url=logs/libunicode/libunicode-0.6.0-2.log
The text was updated successfully, but these errors were encountered: