Skip to content

Commit

Permalink
[WEBGPU] Update to latest compilationHints API (#16197)
Browse files Browse the repository at this point in the history
This PR updates the webgpu runtime to use the latest
compilationHints API.
  • Loading branch information
tqchen authored Dec 3, 2023
1 parent 9e4e17c commit a2f55a8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion web/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ src/tvmjs_runtime_wasi.js: dist/wasm/tvmjs_runtime.wasm emcc/decorate_as_wasi.py
python3 emcc/decorate_as_wasi.py dist/wasm/tvmjs_runtime.js $@ es

clean:
@rm -rf dist/wasm
@rm -rf dist/wasm lib src/tvmjs_runtime_wasi.js

-include dist/wasm/*.d
12 changes: 6 additions & 6 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@types/node": "^20.4.5",
"@typescript-eslint/eslint-plugin": "^5.59.6",
"@typescript-eslint/parser": "^5.59.6",
"@webgpu/types": "^0.1.24",
"@webgpu/types": "^0.1.40",
"eslint": "^8.41.0",
"jest": "^26.0.1",
"rollup": "^2.56.2",
Expand Down
7 changes: 4 additions & 3 deletions web/src/webgpu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -686,11 +686,12 @@ export class WebGPUContext {

const shaderModule = this.device.createShaderModule({
code: code,
hints: {
main: {
compilationHints: [
{
entryPoint: "main",
layout: pipelineLayout
}
}
]
});

if (asyncMode) {
Expand Down

0 comments on commit a2f55a8

Please sign in to comment.