GPU memory usage for fixed size is too high, would need an algorithm for a variable size. the maximum number is well known, check docs.nvidia.com/cuda/samples/5_Simulations/particles/doc/particles.pdf for a variable approach