Skip to content

Commit 781c263

Browse files
committed
ggml-cpu: move things around
Signed-off-by: Aaron Teo <[email protected]>
1 parent 18d79e1 commit 781c263

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

ggml/src/CMakeLists.txt

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ add_library(ggml-base
196196
../include/gguf.h
197197
ggml.c
198198
ggml.cpp
199-
ggml-impl.h
200199
ggml-alloc.c
201200
ggml-backend.cpp
202201
ggml-opt.cpp
@@ -403,17 +402,3 @@ if (BUILD_SHARED_LIBS)
403402
target_compile_definitions(${target} PUBLIC GGML_SHARED)
404403
endforeach()
405404
endif()
406-
407-
if (GGML_VXE)
408-
add_compile_definitions(GGML_VXE)
409-
target_compile_definitions(ggml PRIVATE GGML_VXE)
410-
target_compile_definitions(ggml-base PRIVATE GGML_VXE)
411-
message(STATUS "GGML_VXE triggered")
412-
endif()
413-
414-
if (GGML_NNPA)
415-
add_compile_definitions(GGML_NNPA)
416-
target_compile_definitions(ggml PRIVATE GGML_NNPA)
417-
target_compile_definitions(ggml-base PRIVATE GGML_NNPA)
418-
message(STATUS "GGML_NNPA triggered")
419-
endif()

ggml/src/ggml-cpu/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
443443
elseif (GGML_SYSTEM_ARCH STREQUAL "s390x")
444444
message(STATUS "s390x detected")
445445
list(APPEND GGML_CPU_SOURCES ggml-cpu/arch/s390/quants.c)
446+
list(APPEND GGML_CPU_SOURCES ggml-cpu/arch/s390/typedef.h)
446447
file(READ "/proc/cpuinfo" CPUINFO_CONTENTS)
447448
string(REGEX REPLACE "machine[ \t\r\n]*=[ \t\r\n]*([0-9]+)" "\\1" S390X_M ${CPUINFO_CONTENTS})
448449

0 commit comments

Comments
 (0)