Comparing the efficiency of GPU and CPU in gravitational lensing simulation

Authors

DOI:

https://doi.org/10.26577/ijmph.2024v15i1a6
        216 186

Abstract

In this study, we investigate the computational advancements in simulating gravitational lensing, particularly focusing on the Schwarzschild black hole model. The traditional approach of back ray tracing, where photons are traced back from the observer to the source, is computationally intensive, especially when aiming to achieve high-resolution images of lensing effects around black holes. By employing a numerical method that integrates the Schwarzschild metric with initial conditions derived from the observer's plane, we map the deflection of light around a black hole to generate simulated images of gravitational lensing.
The core of our study is the comparison between traditional CPU-based computations and GPU-accelerated processes using the Numba library. Our findings reveal that GPU acceleration, with its parallel processing capabilities, significantly reduces computation time, particularly as the complexity of the simulation increases with larger grid sizes. This computational efficiency is crucial for simulations of gravitational lensing, where the number of independent calculations grows exponentially with the resolution and accuracy of the desired image.
Our research underscores the importance of leveraging GPU technology for astrophysical simulations, offering a substantial improvement in performance over CPU-based methods.

Keywords: Gravitational Lensing, GPU Parallelization, Schwarzschild Black Hole, Ray Tracing Methods, Numba Library.

Author Biographies

N.A. Beissen, Al-Farabi Kazakh National University, Almaty, Kazakhstan

Candidate of Physical and Mathematical Sciences, associate Professor, Dean of the Faculty of Physics and Technology Al-Farabi Kazakh National University, e-mail: nurzada.beissen@kaznu.edu.kz

D.S. Utepova, Abai Kazakh National Pedagogical University, Almaty, Kazakhstan

PhD student, Al-Farabi Kazakh National University, Abai Kazakh National Pedagogical University,  e-mail: utepova_daniya@mail.ru

V.N. Kossov, Abai Kazakh National Pedagogical University, Almaty, Kazakhstan

Doctor of Physical and Mathematical Sciences, Professor, Abai Kazakh National Pedagogical University, e-mail: kosov_vlad_nik@list.ru

S. Toktarbay, Kazakh National Women’s Teacher Training University, Almaty, Kazakhstan

PhD, Al-Farabi Kazakh National University, Kazakh National Women’s Teacher Training University, e-mail: Saken.Toktarbay@kaznu.edu.kz

M.K. Khassanov, Al-Farabi Kazakh National University, Almaty, Kazakhstan

PhD, Al-Farabi Kazakh National University, e-mail: Manas.Khassanov@kaznu.edu.kz

T. Yernazarov, Al-Farabi Kazakh National University, Almaty, Kazakhstan

PhD student, Al-Farabi Kazakh National University, e-mail: Tursynbek.Yernazarov@kaznu.edu.kz

A.K. Imanbayeva, Al-Farabi Kazakh National University, Almaty, Kazakhstan

Candidate of Physical and Mathematical Sciences, Al-Farabi Kazakh National University, e-mail: akmaral@physics.kz

Downloads

How to Cite

Beissen, N. ., Utepova, D. ., Kossov, V. ., Toktarbay, S. ., Khassanov, M. ., Yernazarov, T. ., & Imanbayeva, A. (2024). Comparing the efficiency of GPU and CPU in gravitational lensing simulation. International Journal of Mathematics and Physics, 15(1), 49–56. https://doi.org/10.26577/ijmph.2024v15i1a6