0009-blas.patch 749 B

12345678910111213141516171819202122232425
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Jesse Gross <jesse@ollama.com>
  3. Date: Mon, 30 Sep 2024 16:31:04 -0700
  4. Subject: [PATCH] blas
  5. ---
  6. ggml/src/ggml-blas.cpp | 4 ++++
  7. 1 file changed, 4 insertions(+)
  8. diff --git a/ggml/src/ggml-blas.cpp b/ggml/src/ggml-blas.cpp
  9. index 6d99c6be..8e1ab99d 100644
  10. --- a/ggml/src/ggml-blas.cpp
  11. +++ b/ggml/src/ggml-blas.cpp
  12. @@ -1,3 +1,5 @@
  13. +#ifdef GGML_USE_BLAS
  14. +
  15. #include "ggml-impl.h"
  16. #include "ggml-blas.h"
  17. #include "ggml-backend-impl.h"
  18. @@ -366,3 +368,5 @@ void ggml_backend_blas_set_n_threads(ggml_backend_t backend_blas, int n_threads)
  19. ggml_backend_blas_context * ctx = (ggml_backend_blas_context *)backend_blas->context;
  20. ctx->n_threads = n_threads;
  21. }
  22. +
  23. +#endif