Menu

1 / 4

Know Rust? Learn CUDA by Solving GPU Challenges

DEV Community: rust·Myoungho Shin·about 5 hours ago
#TJYyosfg
#devtorust#devto#dev#rust#cuda
Reading 0:00
15s threshold

Are you a Rust developer who wants to learn CUDA programming?

Try a GPU programming challenge in Rust. Write a kernel, run it on a real GPU, and use profiling to see what your code is doing.

I added Rust support to GPUFlight Performance Lab so you can do exactly that. Start with a provided problem, make a change, and compare the results.

Learn GPU programming in Rust by solving hands-on challenges in GPU occupancy, memory coalescing, shared-memory bank conflicts, tiled matrix multiplication, atomic contention, warp-level reductions, stencil optimization, online softmax, and so on.

Rust selected in GPUFlight Performance Lab. This vector-add kernel uses 256 threads per block.

Comparing it with CUDA C++ has been a useful way to see how each compiler handles the same work.

One thing I keep coming back to is the compiler output. The source code tells me what I asked for.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.