4 ms·
Not really, WebGPU API is around the same level as CUDA or OpenCL. In fact SYCL (which is used in this article) is slightly higher than WebGPU, because you don
by nromiun 3y ago
Not really, WebGPU API is around the same level as CUDA or OpenCL.
In fact SYCL (which is used in this article) is slightly higher than WebGPU, because you don't have to manually allocate buffers. If you want something even higher you should look into frameworks like Numba (for CUDA) and Taichi (for Vulkan and WebGPU).
- hutzlibu 3y agoBut WebGPU you can just try out directly in the browser and immediately start hacking away (if you have chrome, or activate some flags in firefox): https://google.github.io/tour-of-wgsl/ https://google.github.io/tour-of-wgsl/ No need to setup, install or config anything. I think that is arguably easier as a quick start. Otherwise yes, the whole tooling and everything else is not really that mature in WebGPU. And thanks for Taichi. I did not know of that libary and it sounds interesting! (I will stay with WebGPU for now)
- nromiun 3y agoEasier, sure, but not higher level compared to CUDA or OpenCL. You can also (probably) use Taichi.js without installing anything. Which is a high level API.
- hutzlibu 3y ago"You can also (probably) use Taichi.js without installing anything" Yes you can! (because of WebGPU) And I never said WebGPU is high level. I said and meant it is simpler to get started with. At least it was quite simple for me. But WebGPU and wgsl by itself are surely not "simple".