Comparing the efficiency of GPU and CPU in gravitational lensing simulation
Open Access
- 1 January 2024
- journal article
- research article
- Published by al-Farabi Kazakh National University in International Journal of Mathematics and Physics
- Vol. 15 (1) , 49-56
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
This publication has 13 references indexed in Scilit:
- A shadows from the static black hole mimickersInternational Journal of Mathematics and Physics, 2022
- Black hole shadow with soft hairsJournal of High Energy Physics, 2022
- Gravitational field of slightly deformed naked singularitiesThe European Physical Journal C, 2022
- OSIRIS: a new code for ray tracing around compact objectsThe European Physical Journal C, 2022
- Approximate perfect fluid solutions with quadrupole momentInternational Journal of Modern Physics D, 2021
- Lensing and shadow of a black hole surrounded by a heavy accretion diskJournal of Cosmology and Astroparticle Physics, 2020
- New method for shadow calculations: Application to parametrized axisymmetric black holesPhysical Review D, 2016
- Motion of test particles in the field of a naked singularityPhysical Review D, 2016
- A stationary q-metricGravitation and Cosmology, 2014
- MASS QUADRUPOLE AS A SOURCE OF NAKED SINGULARITIESInternational Journal of Modern Physics D, 2011