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: move GPU access to external process #2448

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

edevil
Copy link
Collaborator

@edevil edevil commented Jul 26, 2024

Support having a separate process that talks to the GPU, and to which workerd can talk to using the dawn wire procotol. There are now two implementations of DawnContainer, one that relies on a remote connection via the wire protocol, and another that attempts to access the GPU directly via Dawn native, which is the default.

To use the remote protocol workerd needs to be built with the enable_experimental_webgpu_remote flag and the webgpuBackend config needs to be set with the correct path for the unix socket on which the server is listening on.

A server can be launched via the //src/workerd/server:voodoo module passing as a parameter the unix socket path where it will be listening on.

@edevil edevil requested review from a team as code owners July 26, 2024 15:17
@edevil edevil force-pushed the external_gpu branch 6 times, most recently from 56121a3 to 59fa6ec Compare July 26, 2024 18:12
Support having a separate process that talks to the GPU, and to which
workerd can talk to using the dawn wire procotol. There are now two
implementations of `DawnContainer`, one that relies on a remote
connection via the wire protocol, and another that attempts to access the
GPU directly via Dawn native, which is the default.

To use the remote protocol workerd needs to be built with the
enable_experimental_webgpu_remote flag and the `webgpuBackend` config
needs to be set with the correct path for the unix socket on which the
server is listening on.

A server can be launched via the //src/workerd/server:voodoo module
passing as a parameter the unix socket path where it will be listening
on.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants