Skip to content

Commit 84770b4

Browse files
committed
Temporary fix, wait on each submit
1 parent ee47adb commit 84770b4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ggml/src/ggml-webgpu/ggml-webgpu.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ static void ggml_backend_webgpu_build_and_enqueue(webgpu_context &
424424
ctx->staged_param_bufs.push_back(params_bufs);
425425
if (ctx->staged_command_bufs.size() == WEBGPU_COMMAND_SUBMIT_BATCH_SIZE) {
426426
ggml_backend_webgpu_submit_queue(ctx);
427+
ggml_backend_webgpu_wait_on_submission(ctx);
427428
}
428429
}
429430
}

0 commit comments

Comments
 (0)