onnxruntime/js/web/lib/wasm/jsep/webgpu
Yulong Wang 79c4ed9a45
[js/webgpu] support error pop and kernel name (#17260)
### Description
This PR contains changes to support error pop and kernel name.

- Add a function `JsepGetNodeName` to allow reading kernel name from JS
to C++
- When in debug mode ( `env.debug = true;` ) or in profiling mode (
`env.webgpu.profilingMode = 'default';` ), kernel name will be read from
ORT; otherwise use the kernel pointer ( a number ) as kernel name to
save calls from JS to C++.
- When in debug mode, WebGPU validation errors will be recorded and if
any error occurs, `inferenceSession.run()` will fail (Promise get
rejected). Behavior when not in debug mode is not changed. This is
because recording errors are not zero-overhead, and GPU validation
errors should occur consistently in and not in debug mode.
- Add `jsepOnRunStart()` and `jsepOnRunEnd()` hook to:
   - allow implementation of the features mentioned above.
   - pass session ID to backend.
2023-08-25 08:08:15 -07:00
..
ops [JS/Web] Fix ConvTranspose shader code compilation errors. (#17232) 2023-08-25 06:25:54 -07:00
attribute-with-cache-key.ts
gpu-data-manager.ts [js/webgpu] Make sure only storage buffers are reused (#16893) 2023-08-04 13:40:52 -07:00
op-resolve-rules.ts [js/webgpu] support Cast operator (#16489) 2023-08-18 23:51:03 -07:00
program-manager.ts [js/webgpu] support error pop and kernel name (#17260) 2023-08-25 08:08:15 -07:00
types.ts [js/web] JSEP LayerNormalization and InstanceNormalizations kernels (#16830) 2023-08-08 09:09:37 -07:00