8000
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 cb4161b commit ca31c30Copy full SHA for ca31c30
ggml/src/ggml-opencl/ggml-opencl.cpp
@@ -1238,6 +1238,9 @@ static void ggml_backend_opencl_synchronize(ggml_backend_t backend) {
1238
// enqueued to it won't start until commands in the other devices have
1239
// completed.
1240
static void sync_with_other_backends(ggml_backend_opencl_context * backend_ctx) {
1241
+ if (g_ggml_backend_opencl_devices.size() < 2)
1242
+ return; // No other devices to synchronize with.
1243
+
1244
std::vector<cl_event> events;
1245
events.reserve(g_ggml_backend_opencl_devices.size());
1246
0 commit comments