Comparing the efficiency of GPU and CPU in gravitational lensing simulation

Authors

  • N.A. Beissen Al-Farabi Kazakh National University, Almaty, Kazakhstan
  • D.S. Utepova Abai Kazakh National Pedagogical University, Almaty, Kazakhstan
  • V.N. Kossov Abai Kazakh National Pedagogical University, Almaty, Kazakhstan
  • S. Toktarbay Kazakh National Women’s Teacher Training University, Almaty, Kazakhstan
  • M.K. Khassanov Al-Farabi Kazakh National University, Almaty, Kazakhstan
  • T. Yernazarov Al-Farabi Kazakh National University, Almaty, Kazakhstan
  • A.K. Imanbayeva Al-Farabi Kazakh National University, Almaty, Kazakhstan

DOI:

https://doi.org/10.26577/ijmph.2024v15i1a6
        22 44

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.

Downloads

Published

2024-06-20

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