We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e141ce6 commit 9422c5eCopy full SHA for 9422c5e
examples/rpc/rpc-server.cpp
@@ -6,6 +6,10 @@
6
#include "ggml-metal.h"
7
#endif
8
9
+#ifdef GGML_USE_SYCL
10
+#include "ggml-sycl.h"
11
+#endif
12
+
13
#include "ggml-rpc.h"
14
#ifdef _WIN32
15
# include <windows.h>
@@ -79,6 +83,12 @@ static ggml_backend_t create_backend() {
79
83
if (!backend) {
80
84
fprintf(stderr, "%s: ggml_backend_metal_init() failed\n", __func__);
81
85
}
86
+#elif GGML_USE_SYCL
87
+ fprintf(stderr, "%s: using SYCL backend\n", __func__);
88
+ backend = ggml_backend_sycl_init(0); // init device 0
89
+ if (!backend) {
90
+ fprintf(stderr, "%s: ggml_backend_sycl_init() failed\n", __func__);
91
+ }
82
92
93
94
// if there aren't GPU Backends fallback to CPU backend
0 commit comments