Skip to content

Commit 53cb49e

Browse files
cmdr2slaren
authored andcommitted
cpu: move all the operators into a separate c++ file (except mul_mat) (ggml/1167)
* cpu: refactor SIMD mappings and vectorized op functions into separate files * Fix warning for ggml_float to float * Fix warnings * cpu: move all the operations (except mul_mat) to a separate c++ file * fix whitespace * Update ggml/src/ggml-cpu/vec.h Co-authored-by: Diego Devesa <[email protected]> * Fix PR comments - use GGML_UNUSED, use cassert in ops.cpp * Reverse the order of import for ops.h and vec.h, to match what was present in ggml-cpu.c previously --------- Co-authored-by: Diego Devesa <[email protected]>
1 parent d0d5b22 commit 53cb49e

File tree

7 files changed

+11677
-11501
lines changed

7 files changed

+11677
-11501
lines changed

ggml/src/ggml-cpu/CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ function(ggml_add_cpu_backend_variant_impl tag_name)
2828
ggml-cpu/binary-ops.cpp
2929
ggml-cpu/unary-ops.h
3030
ggml-cpu/unary-ops.cpp
31+
ggml-cpu/simd-mappings.h
32+
ggml-cpu/vec.h
33+
ggml-cpu/vec.cpp
34+
ggml-cpu/ops.h
35+
ggml-cpu/ops.cpp
3136
)
3237

3338
target_compile_features(${GGML_CPU_NAME} PRIVATE c_std_11 cxx_std_17)

0 commit comments

Comments
 (0)