summaryrefslogtreecommitdiff
path: root/ggml-sycl.h
diff options
context:
space:
mode:
authorMeng, Hengyu <hengyu.meng@intel.com>2024-06-15 14:05:10 +0800
committerGitHub <noreply@github.com>2024-06-15 14:05:10 +0800
commit7b2f4a7d193ef2475259bbe7656fcccfab4b1217 (patch)
treebc47d7cc1d1d3b2677de25b3666342fb65c5ccba /ggml-sycl.h
parentf8ec8877b75774fc6c47559d529dac423877bcad (diff)
[SYCL] remove global variables (#7710)
* separate DPCT helpers outside * replace global variables with context * remove useless extra * update mul_mat condition * remove duplicate buft initialization * remove duplicate extra and global work group size * remove useless backend check * remove duplicated extras * use macro for group_size and remove cuda-related
Diffstat (limited to 'ggml-sycl.h')
-rw-r--r--ggml-sycl.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/ggml-sycl.h b/ggml-sycl.h
index a9f776fc..451938fc 100644
--- a/ggml-sycl.h
+++ b/ggml-sycl.h
@@ -8,14 +8,12 @@
#include "ggml.h"
#include "ggml-backend.h"
+#include "ggml-sycl/presets.hpp"
#ifdef __cplusplus
extern "C" {
#endif
-#define GGML_SYCL_MAX_DEVICES 48
-#define GGML_SYCL_NAME "SYCL"
-
// backend API
GGML_API ggml_backend_t ggml_backend_sycl_init(int device);
@@ -33,13 +31,6 @@ GGML_API GGML_CALL void ggml_sycl_get_gpu_list(int *id_list, int max_len);
GGML_API GGML_CALL void ggml_sycl_get_device_description(int device, char *description, size_t description_size);
GGML_API GGML_CALL int ggml_backend_sycl_get_device_count();
GGML_API GGML_CALL void ggml_backend_sycl_get_device_memory(int device, size_t *free, size_t *total);
-GGML_API GGML_CALL int ggml_backend_sycl_get_device_index(int device_id);
-
-// TODO: these are temporary
-// ref: https://github.com/ggerganov/llama.cpp/pull/6022#issuecomment-1992615670
-GGML_API GGML_CALL int ggml_backend_sycl_get_device_id(int device_index);
-GGML_API GGML_CALL void ggml_backend_sycl_set_single_device_mode(int main_gpu_id);
-GGML_API GGML_CALL void ggml_backend_sycl_set_mul_device_mode();
// SYCL doesn't support registering host memory, keep here for reference
// GGML_API GGML_CALL bool ggml_backend_sycl_register_host_buffer(void * buffer, size_t size);