ggml-blas.h 526 B

1234567891011121314151617181920212223
  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_API GGML_CALL ggml_backend_t ggml_backend_blas_init(void);
  9. GGML_API GGML_CALL 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_API GGML_CALL void ggml_backend_blas_set_n_threads(ggml_backend_t backend_blas, int n_threads);
  13. #ifdef __cplusplus
  14. }
  15. #endif