Computation (Mar 2024)

Exploring Numba and CuPy for GPU-Accelerated Monte Carlo Radiation Transport

  • Tair Askar,
  • Argyn Yergaliyev,
  • Bekdaulet Shukirgaliyev,
  • Ernazar Abdikamalov

DOI
https://doi.org/10.3390/computation12030061
Journal volume & issue
Vol. 12, no. 3
p. 61

Abstract

Read online

This paper examines the performance of two popular GPU programming platforms, Numba and CuPy, for Monte Carlo radiation transport calculations. We conducted tests involving random number generation and one-dimensional Monte Carlo radiation transport in plane-parallel geometry on three GPU cards: NVIDIA Tesla A100, Tesla V100, and GeForce RTX3080. We compared Numba and CuPy to each other and our CUDA C implementation. The results show that CUDA C, as expected, has the fastest performance and highest energy efficiency, while Numba offers comparable performance when data movement is minimal. While CuPy offers ease of implementation, it performs slower for compute-heavy tasks.

Keywords