NVIDIA CUDA Tutorial 8: Intro to Shared Memory @WhatsACreel
NVIDIA CUDA Tutorial 8: Intro to Shared Memory  @WhatsACreel
Uploaded August 2013 | Updated September 2026, 2 weeks ago
Wow, this has been a tricky tute. I originally tried to cover much more and added some coding at the end but it was too long to be interesting. Then I chopped the coding to be a separate tute and concentrated on the theory side, it was still way too long.

Shared memory is a very intricate topic, it's at the very core of what programming CUDA is all about. I eventually decided that there's no good brushing over this stuff, shared memory deserves more attention. This tutorial is a little intro, it has information on how to allocate shared memory, a little about what shared memory is and an illustration of the dreaded race condition problem that comes about when resources are shared among parallel threads.

Next tute we'll look in more detail at the organization of shared memory and how to get the most performance out of it. After that we will be an excellent position to optimize the algorithm we looked at last tute.

Sorry in advance if you're one of those folks that likes a bit of code in the tutes. We'll get back to coding but this topic needs a foundation first. Cheers all!

Facebook:
facebook.com/pages/WhatsaCreel/167732956665435
NVIDIA CUDA Tutorial 8: Intro to Shared MemoryC++ Tutorial 15: Structures Explained (Game Programming)x64 Assembly Tutorial 49: SSE Arithmetic and Dynamic MemoryLinux x64 Assembly Tutorial 5: Boolean Bitwise InstructionsModern x64 Assembly 11: Division with the DIV and IDIV InstructionsModern x64 Assembly 8: Shift, Rotate and Bit Manipulation InstructionsC++ Tutorial 18: Function OverloadingModern x64 Assembly 10: Conditional Jumps, Moves and Set Bytex64 Assembly Tutorial 58: Intro to AVXModern x64 Assembly 9: The rFlags Register (Flags, pushfq, popfq, pushf, popf)C++ Function Pointers 1: IntroductionGodbolt Compiler Explorer Adventures
Creel |

NVIDIA CUDA Tutorial 8: Intro to Shared Memory

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER