onnxruntime
d58ff6b9 - [web] allow NPM tests to run nodejs binding for webgpu (#24370)

Commit
288 days ago
[web] allow NPM tests to run nodejs binding for webgpu (#24370) ### Description This change allows NPM tests to run the nodejs binding for webgpu. This helps to debug test failures much easier because WebAssembly is generally very difficult to debug. Steps to debug: 0. build - {ORT_ROOT}> build --config Debug --use_webgpu --build_nodejs - {ORT_ROOT}\js\web> npm ci - {ORT_ROOT}\js\web> npm run pull:wasm 2. run `npm test -- <args> -b=webgpu -e=node` once. ( this command generates necessary .js files and `testdata-config.json`.) 3. use native debugger to debug: ``` C:\Program Files\nodejs\node.exe {ORT_ROOT}\js\node_modules\mocha\bin\_mocha --timeout 999999 --colors -r {ORT_ROOT}\js/web/dist/ort.node.min.js {ORT_ROOT}\js/web/test/test-main ```
Author
Parents
Loading