Shared memory is a manual cache with a bank conflict waiting in it
Staging a tile through shared memory pays when each staged element is read several times and the halo loaded for it is small. Price it as reads per staged byte against halo overhead, then check each shared read's bank arithmetic before writing the kernel: the lane stride in words sets the conflict degree.
17 MIN · PREMIUM
Unlock the full curriculum — ₹2,000 / $25every concept + every answer · 6 months · no auto-renew
