Skip to content

Commit 69965a8

Browse files
committed
Try synchronous submission
1 parent bfc6930 commit 69965a8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
/* Constants */
2828

29-
#define WEBGPU_COMMAND_SUBMIT_BATCH_SIZE 16
29+
#define WEBGPU_COMMAND_SUBMIT_BATCH_SIZE 1
3030
#define WEBGPU_MUL_MAT_WG_SIZE 64
3131
#define WEBGPU_NUM_PARAM_BUFS 100
3232
#define WEBGPU_PARAMS_BUF_SIZE_BYTES 256
@@ -329,6 +329,7 @@ static void ggml_backend_webgpu_build_and_enqueue(webgpu_context &
329329
ggml_backend_webgpu_submit_queue(ctx);
330330
}
331331
}
332+
ggml_backend_webgpu_wait_on_submission(ctx);
332333
}
333334

334335
static void ggml_backend_webgpu_buffer_memset(webgpu_context & ctx,

0 commit comments

Comments
 (0)