CUDA Design Patterns

I am new to CUDA programming, and I wonder if anyone knows about the good sources that discuss design patterns for CUDA.

+4
source share
3 answers

I think Modern GPU Computing is a good resource for people who want to learn CUDA. You can find a good explanation of parallel programming techniques for reducing, scanning, compressing strings, and other interesting things about CUDA optimization. This is a GitHub link for sample code from this blog.

+4
source

I heard good things about Parallel Programming Patterns , and I think combining it with the CUDA Best Practice Guide (included in the CUDA Toolkit) should be a good start.

Sites such as the Sean Baxter ModernGPU, as mentioned by marina.k, will help with the implementation of CUDA for some common parallel algorithm patterns (but I would use the Thrust or Sean code from ModernGPU and not implement my own if you are not doing this as a training exercise) .

+3
source

Take a look at this conversation: http://www.cs.berkeley.edu/~volkov/volkov10-GTC.pdf

The author points out that you do not always need high filling (i.e.: many threads) to get good results (maximum calculation result).

0
source

All Articles