gpuweb / gpuweb

Where the GPU for the Web work happens!
https://webgpu.io
Other
4.77k stars 316 forks source link

Support Multi-GPUs #995

Open yyc-git opened 4 years ago

yyc-git commented 4 years ago

Now I have one computer(win10 os) with multiple gpus(e.g. two RTX 2070s), How to use all of them to render???

Vulkan1.1 support multi-gpu by using device groups!

Thanks very much!!!

kainino0x commented 4 years ago

Using multiple GPUs separately (getting multiple GPUAdapters and creating a GPUDevice on each one) would be enabled by some API changes I intend to propose eventually (pre-1.0), but there is no API surface or implementation for it yet.

Using multiple GPUs in SLI/CrossFire is very niche (and I don't know how complicated); we definitely won't be considering it until post-1.0 (except to make sure that the API is flexible enough to incorporate them later). I imagine that they will be fairly opaque - we'd support some way to create a single GPUAdapter from multiple GPUs in SLI/CrossFire - and the rest of the API wouldn't change much or at all.

Kangz commented 4 years ago

I imagine that they will be fairly opaque - we'd support some way to create a single GPUAdapter from multiple GPUs in SLI/CrossFire - and the rest of the API wouldn't change much or at all.

If anything is done, I think it will need to be very transparent as there's complicated copy decisions between adapters that the application needs to take. But really this is far post 1.0, like potentially years after.

yyc-git commented 4 years ago

Using multiple GPUs separately (getting multiple GPUAdapters and creating a GPUDevice on each one) would be enabled by some API changes I intend to propose eventually (pre-1.0), but there is no API surface or implementation for it yet.

It's great to hear that it will be enabled in pre-1.0!!!