Skip to content

Commit

Permalink
[js/webgpu] Log the key and program info for artifact (microsoft#18365)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gyagp authored Nov 30, 2023
1 parent 7335760 commit 227dcb3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/web/lib/wasm/jsep/backend-webgpu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 227dcb3

Please sign in to comment.