9128

A new CUDA-based GPU implementation of the two-dimensional Athena code

A. Wasiljew, K. Murawski
Faculty of Physics, Mathematics and Informatics, University of Maria Curie-Sklodowska, 1 M. Curie-Sklodowskiej Sq., 20-031 Lublin, Poland
Bulletin of the Polish Academy of Sciences, Technical Sciences, Vol. 61, No. 1, 2013

@article{wasiljew2013new,

   title={A new CUDA-based GPU implementation of the two-dimensional Athena code},

   author={WASILJEW, A and MURAWSKI, K},

   journal={TECHNICAL SCIENCES},

   volume={61},

   number={1},

   year={2013}

}

Download Download (PDF)   View View   Source Source   

2274

views

We present a new version of the Athena code, which solves magnetohydrodynamic equations in two-dimensional space. This new implementation, which we have named Athena-GPU, uses CUDA architecture to allow the code execution on Graphical Processor Unit (GPU). The Athena-GPU code is an unofficial, modified version of the Athena code which was originally designed for Central Processor Unit (CPU) architecture. We perform numerical tests based on the original Athena-CPU code and its GPU counterpart to make a performance analysis, which includes execution time, precision differences and accuracy. We narrowed our tests and analysis only to double precision floating point operations and two-dimensional test cases. Our comparison shows that results are similar for both two versions of the code, which confirms correctness of our CUDA-based implementation. Our tests reveal that the Athena-GPU code can be 2 to 15-times faster than the Athena-CPU code, depending on test cases, the size of a problem and hardware configuration.
No votes yet.
Please wait...

* * *

* * *

HGPU group © 2010-2024 hgpu.org

All rights belong to the respective authors

Contact us: