-
Notifications
You must be signed in to change notification settings - Fork 966
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
Build fails on Centos7 with make: *** [all] Error 2 #569
Comments
Does your CPU support AVX? |
this returns nothing |
That's probably the issue then. diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index a1cedf0..35e8e67 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -159,7 +159,7 @@ target_link_libraries(${TEST_TARGET} PRIVATE ggml)
#
# test-vec1 (x86)
-if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86")
+if (${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86" AND ${CMAKE_C_FLAGS} MATCHES "avx")
set(TEST_TARGET test-vec1)
add_executable(${TEST_TARGET} ${TEST_TARGET}.c)
target_link_libraries(${TEST_TARGET} PRIVATE ggml) Edit: updated the diff. |
that works thanks! |
Let's keep this open until it is fixed here. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When I try to follow the instructions building ggml to use mpt here: https://github.com/ggerganov/ggml/tree/79ea7a41a388e9e7c85e426e912ab38399c44bfa/examples/mpt
distro: Centos7
gcc: 13.2.0
g++: 13.2.0
command for "cmake":
cmake -D CMAKE_C_COMPILER=/usr/local/bin/gcc -D CMAKE_CXX_COMPILER=/usr/local/bin/g++ ..
command for "make":
make -j 4 CC=/usr/local/bin/gcc CXX=/usr/local/bin/g++
I get the following error:
The text was updated successfully, but these errors were encountered: