]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
cpu: move all the operators into a separate c++ file (except mul_mat) (ggml/1167)
authorcmdr2 <redacted>
Wed, 2 Apr 2025 12:16:16 +0000 (17:46 +0530)
committerGeorgi Gerganov <redacted>
Thu, 3 Apr 2025 07:30:16 +0000 (10:30 +0300)
commit513ecf8dc0bf27ad61ca55e71e3612cab40d8007
tree9be729a17d065cc5192a3ae68f19e9de5133e4ee
parentcce5daf17b71989db428a930fd8d64a958c68537
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 <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>
ggml/src/ggml-cpu/CMakeLists.txt
ggml/src/ggml-cpu/ggml-cpu.c
ggml/src/ggml-cpu/ops.cpp [new file with mode: 0644]
ggml/src/ggml-cpu/ops.h [new file with mode: 0644]
ggml/src/ggml-cpu/simd-mappings.h [new file with mode: 0644]
ggml/src/ggml-cpu/vec.cpp [new file with mode: 0644]
ggml/src/ggml-cpu/vec.h [new file with mode: 0644]