Comment on Ask HN: Best way to learn GPU programming?Comments−the__alchemist2yStep 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 KernelsDon't bother with Vulkan compute and shaders etc. It works, but is high friction compared to CUDA.
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.