]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
Revert "[SYCL] Update rpc-server.cpp to include SYCL backend (#7682)" (#7808)
authorslaren <redacted>
Sat, 8 Jun 2024 23:43:39 +0000 (01:43 +0200)
committerGitHub <redacted>
Sat, 8 Jun 2024 23:43:39 +0000 (01:43 +0200)
This reverts commit 9422c5e34bbd302493b77a8f6d546154a1f4fe82.

examples/rpc/rpc-server.cpp

index 62d8282501768271cacc8e5ae3876878978685ad..7c15d2aa4acfb0af4ee85a00fb28e4c41663a2e8 100644 (file)
@@ -6,10 +6,6 @@
 #include "ggml-metal.h"
 #endif
 
-#ifdef GGML_USE_SYCL
-#include "ggml-sycl.h"
-#endif
-
 #include "ggml-rpc.h"
 #ifdef _WIN32
 #  include <windows.h>
@@ -83,12 +79,6 @@ static ggml_backend_t create_backend() {
     if (!backend) {
         fprintf(stderr, "%s: ggml_backend_metal_init() failed\n", __func__);
     }
-#elif GGML_USE_SYCL
-    fprintf(stderr, "%s: using SYCL backend\n", __func__);
-    backend = ggml_backend_sycl_init(0); // init device 0
-    if (!backend) {
-        fprintf(stderr, "%s: ggml_backend_sycl_init() failed\n", __func__);
-    }
 #endif
 
     // if there aren't GPU Backends fallback to CPU backend