[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.
This commit is contained in:
Yang Gu 2023-11-30 10:01:12 +08:00 committed by GitHub
parent 7335760424
commit 227dcb3a88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(