Lovely! I like how the API is in a single header file that you can read through and understand in one sitting.<p>I've worked with OpenGL and Direct3D and Metal in the past, but the pure compute side of GPUs is mostly foreign to me. Learning CUDA always felt like a big time investment when I never had an obvious need at hand.<p>So I'm definitely going to play with library and try to get up to speed. Thanks for publishing it.
This is cool, but they should have just used Vulkan. Dawn is a massive dependency (and a PITA to build, in my experience) to get what's basically a wrapper around Vulkan. Vulkan has a reputation for being difficult to work with, but if you just want to use a compute queue it's not that horrible. Also, since Vulkan uses SPIR-V, the user would have more choices for shading languages. Additionally, with RenderDoc you get source-level shader debugging.<p>Shameless plug: in case anyone wants to see how doing just compute with Vulkan looks like, I wrote a similar library to compete on SHAllenge [0], which was posted here on HN a few days ago. My library is here: <a href="https://github.com/0xf00ff00f/vulkan-compute-playground/">https://github.com/0xf00ff00f/vulkan-compute-playground/</a><p>[0] <a href="https://shallenge.quirino.net/" rel="nofollow">https://shallenge.quirino.net/</a>
Hi, author here! Agh I was intending for the project to fly under the radar for a few more days before making the announcement and blog post (please look/upvote that when you see it haha :)<p>But since this is starting I'm happy to chat. Nice to see the interest here!
We just published an article introducing gpu.cpp, what it's for, and how it works:<p><a href="https://www.answer.ai/posts/2024-07-11--gpu-cpp.html" rel="nofollow">https://www.answer.ai/posts/2024-07-11--gpu-cpp.html</a>
I watched the video mentioned in the post [1], but now I’m more confused than before…<p>What are the benefits, if any, of using gpu.cpp instead of just webgpu.h (webgpu native) directly? Maybe each is tailored for different use cases?<p>[1] <a href="https://youtu.be/qHrx41aOTUQ?si=CehJnYQWCg3XklHj" rel="nofollow">https://youtu.be/qHrx41aOTUQ?si=CehJnYQWCg3XklHj</a>