Comparing the efficiency of GPU and CPU in gravitational lensing simulation
Beissen N.A. Utepova D.S. Kossov V.N. Toktarbay S. Khassanov M.K. Yernazarov T. Imanbayeva A.K.
20 June 2024al-Farabi Kazakh State National University
International Journal of Mathematics and Physics
2024#15Issue 149 - 56 pp.
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 (Central Processing Unit-based) computations and GPU-accelerated (Graphics Processing Unit-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 study underscores the importance of leveraging GPU technology for astrophysical simulations on personal computers, offering a substantial improvement in performance over CPU-based methods.
GPU Parallelization , Gravitational Lensing , Numba Library , Ray Tracing Methods , Schwarzschild Black Hole
Text of the article Перейти на текст статьи
Al-Farabi Kazakh National University, Almaty, Kazakhstan
Abai Kazakh National Pedagogical University, Almaty, Kazakhstan
Kazakh National Women’s Teacher Training University, Almaty, Kazakhstan
Al-Farabi Kazakh National University
Abai Kazakh National Pedagogical University
Kazakh National Women’s Teacher Training University
10 лет помогаем публиковать статьи Международный издатель
Книга Публикация научной статьи Волощук 2026 Book Publication of a scientific article 2026