Shared Memory

Certain threads load from global into shared
shared memory allocating using Malloc
Using const in certain function for faster access
Removed pitch in kernel pointers