gpujs / gpu.js

GPU Accelerated JavaScript
https://gpu.rocks
MIT License
15.1k stars 652 forks source link

Parallel devices? #675

Open jbonnett92 opened 3 years ago

jbonnett92 commented 3 years ago

A Hacker

Can we add the option for parallel devices? Like OpenCL you have the option to add more devices, multiple CPUs and GPUs.

Also what if you already have two GPUs? I have no way of selecting a particular one?

Thanks, Jamie

danbulant commented 3 years ago

I'm not sure if browsers allow choosing a GPU, so in browser the most parallel you can get is to have CPU and GPU.

Multiple GPUs on node would require multiple gl context, and likely a rewrite of gpu.js itself.

harshkhandeparkar commented 3 years ago

I don't think this is possible in the browser. The hardware part is mostly handled by the browser.