Skip to content

Comment on Ask HN: Best way to learn GPU programming?

Comments

Step 1: Identify a task in your project of choice that could benefit from it; ie SIMD.

Step 2: Figure out how to set up the FFI bindings if required for your project's language.

Step 3: Read this article to learn kernel syntax, block/thread/stride management etc: https://developer.nvidia.com/blog/even-easier-introduction-c...

Step 4: Ask ChatGPT to translate your code into modern C++, or perhaps even directly into Kernels

Don't bother with Vulkan compute and shaders etc. It works, but is high friction compared to CUDA.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.