-
Notifications
You must be signed in to change notification settings - Fork 159
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
[onert/ggml] Don't specify arch on armv7l linux build #14436
[onert/ggml] Don't specify arch on armv7l linux build #14436
Conversation
It removes the specific arch on ggml cross armv7l linux build. Previously, ggml specifies -mfpu=neon-fp-armv8, which may cause illegal instruction signal during running ggml_quantize_row_q8_0, especially compiled with gcc-13 -On, where n = 1,2,3 on odroid xu4. (ARMv7 Cortex-A15). ONE-DCO-1.0-Signed-off-by: Sanggyu Lee <[email protected]>
@@ -1098,7 +1098,7 @@ if (CMAKE_OSX_ARCHITECTURES STREQUAL "arm64" OR | |||
list(APPEND ARCH_FLAGS -mfpu=neon-vfpv4 -mno-unaligned-access -funsafe-math-optimizations) | |||
else() | |||
# Raspberry Pi 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our target is not Raspberry Pi 2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add comment about custom fix.
Ex)
ONE/runtime/3rdparty/ggml/CMakeLists.txt
Line 232 in ab777f0
# [FIX] Add -fPIC option for static |
35689ed
to
849250d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
On Ubuntu 24.04 mate: After this patch,
Before
|
I also confirmed this PR working on my environment. |
@chunseoklee PTAL. Comment is updated as @hseok-oh requested. |
It removes the specific arch on ggml cross armv7l linux build. Previously, ggml specifies -mfpu=neon-fp-armv8, which may cause illegal instruction signal during running ggml_quantize_row_q8_0, especially compiled with gcc-13 -On, where n = 1,2,3 on odroid xu4. (ARMv7 Cortex-A15).
ONE-DCO-1.0-Signed-off-by: Sanggyu Lee [email protected]
Related: #14391