ggml-sycl.h 913 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // MIT license
  3. // Copyright (C) 2024 Intel Corporation
  4. // SPDX-License-Identifier: MIT
  5. //
  6. #pragma once
  7. #include "ggml.h"
  8. #include "ggml-backend.h"
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #define GGML_SYCL_MAX_DEVICES 16
  13. #define GGML_SYCL_NAME "SYCL"
  14. GGML_API void ggml_init_sycl(void);
  15. GGML_API bool ggml_sycl_compute_forward(struct ggml_compute_params * params, struct ggml_tensor * tensor);
  16. GGML_API ggml_backend_t ggml_backend_sycl_init(int device);
  17. GGML_API ggml_backend_buffer_type_t ggml_backend_sycl_buffer_type(int device);
  18. GGML_API ggml_backend_buffer_type_t ggml_backend_sycl_host_buffer_type(void);
  19. GGML_API void ggml_backend_sycl_print_sycl_devices(void);
  20. GGML_API GGML_CALL void ggml_sycl_get_gpu_list(int *id_list, int max_len);
  21. GGML_API GGML_CALL void ggml_sycl_get_device_description(int device, char *description, size_t description_size);
  22. #ifdef __cplusplus
  23. }
  24. #endif