AI Infra Interviews logo

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

This lesson is part of Premium, which includes all concepts, course lessons and answers.

Get Premium · ₹2,000 / $256 months of access · one payment · no auto-renew