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 75eb99b commit bfc6930Copy full SHA for bfc6930
ggml/src/ggml-webgpu/ggml-webgpu.cpp
@@ -235,6 +235,10 @@ static void ggml_backend_webgpu_wait_on_submission(webgpu_context & ctx) {
235
236
static void ggml_backend_webgpu_submit_queue(webgpu_context & ctx) {
237
std::lock_guard<std::recursive_mutex> lock(ctx->mutex);
238
+ if (ctx->staged_command_bufs.empty()) {
239
+ // Nothing to submit
240
+ return;
241
+ }
242
ctx->queue.Submit(ctx->staged_command_bufs.size(), ctx->staged_command_bufs.data());
243
ctx->staged_command_bufs.clear();
244
std::vector<webgpu_param_bufs> staged_param_bufs = std::move(ctx->staged_param_bufs);
0 commit comments