22-26 August 2011, Porto, Portugal
GPGPU Cosmological N-Body Particle-Particle Simulations We explore the new emerging technique of GPGPU (General-Purpose computing on Graphics Processing Units) and its low-cost commodity high computing capacity, in the context of N-Body cosmological simulations. We have implemented a standard Particle-Particle (PP), direct summation solver in the style of the well-known Hydra cosmological simulation code in a GPGPU, GLSL over OpenGL 2.1 environment. This results in a GPU hardware vendor independent, platform-agnostic, complete PP direct-summation code with all steps and the full simulation iterative loop running on the graphics hardware in its entirety - fully leveraging the performance potential of the GPGPU framework. This endeavour required the reengineering and recasting of the known algorithm in a parallel, vectorial form in order to fully exploit the GPU hardware. Therefore, a novel implementation of the traditional PP algorithm was developed to address the particularities of this vector processing paradigm, opposed to the standard sequential processing based one. We perform an analysis of the performance gains of this novel approach, compared to a ``classical'' implementation of the same algorithm in a traditional x86 architecture CPU. Finally, we show that by using a GPGPU approach in PP direct-summation simulations, we transform the algorithm runtime scaling from O(N²) to O(~N) for the surveyed problem sizes, enabling us to perform PP simulations of scales not practical before. |
We use cookies to ensure that you get the best experience on our website, by continuing on this website you agree to the storing of cookies on your device. Learn more about our Privacy Policy .