From 227dcb3a88eb8c36bfc5c0341156ce96291597ac Mon Sep 17 00:00:00 2001 From: Yang Gu Date: Thu, 30 Nov 2023 10:01:12 +0800 Subject: [PATCH] [js/webgpu] Log the key and program info for artifact (#18365) With uniform support, ideally we may just keep one artifact for each program to save the compilation time. This PR just logs the related info, including key and program name, so that we may understand better the situation. --- js/web/lib/wasm/jsep/backend-webgpu.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/js/web/lib/wasm/jsep/backend-webgpu.ts b/js/web/lib/wasm/jsep/backend-webgpu.ts index e2c2bc8deccf..4ee1fd5442d8 100644 --- a/js/web/lib/wasm/jsep/backend-webgpu.ts +++ b/js/web/lib/wasm/jsep/backend-webgpu.ts @@ -413,6 +413,7 @@ export class WebGpuBackend { if (!artifact) { artifact = this.programManager.build(program, normalizedDispatchGroup); this.programManager.setArtifact(key, artifact); + LOG_DEBUG('info', () => `[artifact] key: ${key}, programName: ${program.name}`); } LOG_DEBUG(