]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
cpu: move all the operators into a separate c++ file (except mul_mat) (#1167)
authorcmdr2 <redacted>
Wed, 2 Apr 2025 12:16:16 +0000 (17:46 +0530)
committerGitHub <redacted>
Wed, 2 Apr 2025 12:16:16 +0000 (17:46 +0530)
commitd920dfd7da37b22d1eb0813cdaf340c1870d76c3
tree43d2a26ca335a1ae94c2f6441c885ed288fdb100
parent7d7aa2dee2eb55dc683af80b769b81a0642226a1
cpu: move all the operators into a separate c++ file (except mul_mat) (#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 src/ggml-cpu/vec.h

Co-authored-by: Diego Devesa <redacted>
* 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 <redacted>
src/ggml-cpu/CMakeLists.txt
src/ggml-cpu/ggml-cpu.c
src/ggml-cpu/ops.cpp [new file with mode: 0644]
src/ggml-cpu/ops.h [new file with mode: 0644]
src/ggml-cpu/simd-mappings.h [new file with mode: 0644]
src/ggml-cpu/vec.cpp [new file with mode: 0644]
src/ggml-cpu/vec.h [new file with mode: 0644]