File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -225,6 +225,7 @@ static void ggml_webgpu_create_buffer(wgpu::Device & device,
225225
226226// Wait for the queue to finish processing all submitted work
227227static void ggml_backend_webgpu_wait_on_submission (webgpu_context & ctx) {
228+ WEBGPU_LOG_DEBUG (" ggml_backend_webgpu_wait_on_submission()" );
228229 std::lock_guard<std::recursive_mutex> lock (ctx->mutex );
229230 if (ctx->callback_futures .empty ()) {
230231 return ;
@@ -235,6 +236,7 @@ static void ggml_backend_webgpu_wait_on_submission(webgpu_context & ctx) {
235236
236237static void ggml_backend_webgpu_submit_queue (webgpu_context & ctx) {
237238 std::lock_guard<std::recursive_mutex> lock (ctx->mutex );
239+ WEBGPU_LOG_DEBUG (" ggml_backend_webgpu_submit_queue()" );
238240 if (ctx->staged_command_bufs .empty ()) {
239241 // Nothing to submit
240242 return ;
@@ -376,6 +378,8 @@ static void ggml_backend_webgpu_free(ggml_backend_t backend) {
376378}
377379
378380static void ggml_webgpu_cpy (webgpu_context & ctx, ggml_tensor * src, ggml_tensor * dst) {
381+ WEBGPU_LOG_DEBUG (" ggml_webgpu_cpy(" << src << " , " << dst << " )" );
382+
379383 size_t src_offset = ggml_backend_webgpu_tensor_offset (src);
380384 // assumes power of 2 offset alignment
381385 size_t src_misalignment = src_offset & (ctx->limits .minStorageBufferOffsetAlignment - 1 );
You can’t perform that action at this time.
0 commit comments