There are different types of memory available to you in CUDA:
- Private: local variables, can’t be shared
- Local: shared between work items in the same group
- Global: shared between all work items everywhere
- Constant: resides on the GPU and is cached and does not change but is limited in size
- Texture: also global and cached and might provide some speedups (for images and rendering and stuff) Choosing the type of memory to be used is important.