Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGPU-Native -> WASI #48

Closed
tqchen opened this issue May 16, 2020 · 6 comments
Closed

WebGPU-Native -> WASI #48

tqchen opened this issue May 16, 2020 · 6 comments
Labels
wasm Issues with WebAssembly targets

Comments

@tqchen
Copy link

tqchen commented May 16, 2020

As part of the discussion here WebAssembly/WASI#276

There seems to be enough interest to bring webgpu native to WASI(on the wasi side). It would be welcoming devlopment that potentially makes webgpu-native run on wasm vms besides the web env. Just want to bring up the attention from this community, and see if it is of interest to the webgpu-native community (@lachlansneff already volunteered)

@tqchen tqchen changed the title WASI WebGPU WebGPU-Native -> WASI May 16, 2020
@doug-moen
Copy link

There is an open issue to add WebGPU to WASI here: WebAssembly/WASI#53

@Kangz
Copy link
Collaborator

Kangz commented May 17, 2020

Can you highlight what would be the difference between wasi-webgpu and webgpu.h + the WebGPU specification? Would it basically add discussion of the event model and maybe more precisions about what happens on mapping?

@tqchen
Copy link
Author

tqchen commented May 17, 2020

My hope is that there shouldn't be any difference ideally, to just land the webgpu-native as a formal wasi spec.

@Kangz
Copy link
Collaborator

Kangz commented May 17, 2020

webgpu.h is not just for WASI though but other native uses, so we'll have to see what the implications are.

@tqchen
Copy link
Author

tqchen commented May 17, 2020

@Kangz I agree, that is why I actually hope you and @kvark could champion the wasi-webgpu spec if possible, to ensure the consistency between the specs.

There are three potential usecases of a GPU API:

  • K0: Run on the web
  • K1: Run on a native wasm vm(e.g. wasmtime)
  • K2: Run on native

WebGPU JS API covers K0, and potentially K2(via nodejs). Vulkan/metal covers K2. Currently webgpu-native covers K0 and K2.

Having webgpu-native as part of WASI would greatly boost the importance of the webgpu-native, because it enables something that neither WebGPU JS API nor the other native APIs(vulkan) can offer(covers all the usecases).

@kvark kvark pinned this issue Jun 9, 2020
@kainino0x kainino0x unpinned this issue Aug 3, 2023
@kainino0x kainino0x added the wasm Issues with WebAssembly targets label Aug 3, 2023
@kainino0x
Copy link
Collaborator

IMO adding WebGPU as a WASI spec should be outside the domain of this group. We'll define the header and API contracts and bringing it to WASI should hopefully be mechanical.

If there are changes or decisions that need to be made about webgpu.h in order to support WASI, please file new issues!
For tracking, I'm closing this issue for now.

@kainino0x kainino0x closed this as not planned Won't fix, can't repro, duplicate, stale Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasm Issues with WebAssembly targets
Projects
None yet
Development

No branches or pull requests

4 participants