ggml-blas.h 586 B

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include "ggml.h"
  3. #include "ggml-backend.h"
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. // backend API
  8. GGML_BACKEND_API ggml_backend_t ggml_backend_blas_init(void);
  9. GGML_BACKEND_API bool ggml_backend_is_blas(ggml_backend_t backend);
  10. // number of threads used for conversion to float
  11. // for openblas and blis, this will also set the number of threads used for blas operations
  12. GGML_BACKEND_API void ggml_backend_blas_set_n_threads(ggml_backend_t backend_blas, int n_threads);
  13. GGML_BACKEND_API ggml_backend_reg_t ggml_backend_blas_reg(void);
  14. #ifdef __cplusplus
  15. }
  16. #endif