3 ms·
Isn't there something like SciPy which you can run on WebGPU?
by amelius 5y ago
Isn't there something like SciPy which you can run on WebGPU?
- raphlinus 5y agoAt this point, there are very few tools actually running on WebGPU, as it's too new. One to watch for sure is IREE, which has a WebGPU backend planned and in the works.
- galangalalgol 5y agoThere is wonnx a rust based webgpu enabled onnx runtime for ml stuff.
- westurner 5y agohttps://wgpu-py.readthedocs.io/en/stable/guide.html https://wgpu-py.readthedocs.io/en/stable/guide.html : > As WebGPU spec is being developed, a reference implementation is also being build. It’s written in Rust, and is likely going to power the WebGPU implementation in Firefox. This reference implementation, called wgpu-native, also exposes a C-api, which means that it can be wrapped in Python. And this is what wgpu-py does. > So in short, wgpu-py is a Python wrapper of wgpu-native, which is a wrapper for Vulkan, Metal and DX12, which are low-level API’s to talk to the GPU hardware. So, it should be possible to WebGPU-accelerate SciPy; for example where NumPy is natively or third-partily CUDA-accelerated edit: Intel MKL, https://Rapids.ai https://Rapids.ai, > Seamlessly scale from GPU workstations to multi-GPU servers and multi-node clusters with Dask. Where can WebGPU + IDK WebRTC/WebSockets + Workers provide value for multi-GPU applications that already have efficient distributed messaging protocols? "Considerable slowdown in Firefox once notebook gets a bit larger" https://github.com/jupyterlab/jupyterlab/issues/1639#issuecomment-925223852 https://github.com/jupyterlab/jupyterlab/issues/1639#issueco... Re: the differences between the W3C Service Workers API, Web Locks API, and the W3C Web Workers API and "4 Ways to Communicate Across Browser Tabs in Realtime" may be helpful. Pyodide compiles CPython and the SciPy stack to WASM. The WASM build would probably benefit from WebGPU acceleration?