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

Add ability to get hold of ComputeClient when using existing wgpu setup #355

Open
torsteingrindvik opened this issue Dec 6, 2024 · 0 comments

Comments

@torsteingrindvik
Copy link
Contributor

The wgpu device sharing example shows a possible way to integrate a wgpu device with other programs.

However if R::client(&shared_device) is called there is a panic:

        unreachable!("Cannot select an adapter for an existing device.")

(from crates/cubecl-wgpu/src/runtime.rs request_adapter)

As such there isn't a nice way (or any way?) to get a compute client.

Locally I modified crates/cubecl-wgpu/src/runtime.rs in init_device to return the compute client it creates, but a proper fix would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant