]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commit
move BLAS to a separate backend (llama/6210)
authorslaren <redacted>
Thu, 13 Jun 2024 01:11:35 +0000 (03:11 +0200)
committerGeorgi Gerganov <redacted>
Sun, 16 Jun 2024 15:19:48 +0000 (18:19 +0300)
commit174a461fc69fcd017ba82ce0bce2a919ddf82f74
treeb33ae0445f18ad5adf8bf0e4ca234fa696ccdc4e
parentd8b7a24bc9413adf03544539b4392e76ab72ff20
move BLAS to a separate backend (llama/6210)

* move BLAS to a separate backend

* rename GGML_USE_OPENBLAS to GGML_USE_BLAS

* alloc : reuse same buffer when the same buffer type if used multiple times

* set number of threads automatically for openblas and blis

* sched : print assignments when GGML_SCHED_DEBUG env variable is set

* sched : allow ops with weights on an incompatible buffer type

This will cause the weight to be copied to a backend that supports the
op, which is very costly. The weight should have been stored in a buffer
of a backend that can run the op, but llama.cpp cannot do this
automatically at the moment.

---------

Co-authored-by: Georgi Gerganov <redacted>
ggml-alloc.c
ggml-backend-impl.h
ggml-backend.c
ggml-backend.h
ggml-cuda.cu
ggml-kompute.cpp
ggml-metal.m
ggml-rpc.cpp
ggml-sycl.cpp
ggml-vulkan.cpp
ggml.c