The complex structure of interplanetary magnetic fields and their variability, due to solar activity, make it necessary to compute the Cosmic Ray (CR) modulation with numerical simulations. COde for a Speedy Monte Carlo (MC) Involving Cuda Architecture (COSMICA) is a MC code, solving backward-in-time the system of Stochastic Differential Equations (SDE) equivalent to the Parker Transport Equation (PTE). The Graphics Processing Unit (GPU) parallelization of COSMICA code is a game changer in this field because it reduces the computational time of a standard simulation from the order of hundred of minutes to few of them. Furthermore, the code is capable of distributing the computations on clusters of machines with multiple GPUs, opening the way for scaling. In COSMICA we implemented the synchronous broadcasting of memory access for evolving variable samples, the rounding of virtual particle set numbers, to fulfil the GPU blocks, and the exploitation of shared memory to free registers. Furthermore, we compactify the mathematical computations and pass to the lighter momentum formulation of SDE. The first porting of the code on GPU architecture brings it to a speed-up of 40 X. The successful optimizations bring 1.5X speed-up.

Cavallotto, G., Della Torre, S., La Vacca, G., Gervasi, M. (2025). COSMICA: a novel parallel GPU code for Cosmic Rays propagation in heliosphere. In 2025 33rd Euromicro International Conference on Parallel, Distributed, and Network-Based Processing (PDP) (pp.420-427). Institute of Electrical and Electronics Engineers Inc. [10.1109/PDP66500.2025.00065].

COSMICA: a novel parallel GPU code for Cosmic Rays propagation in heliosphere

Cavallotto G.;La Vacca G.;Gervasi M.
2025

Abstract

The complex structure of interplanetary magnetic fields and their variability, due to solar activity, make it necessary to compute the Cosmic Ray (CR) modulation with numerical simulations. COde for a Speedy Monte Carlo (MC) Involving Cuda Architecture (COSMICA) is a MC code, solving backward-in-time the system of Stochastic Differential Equations (SDE) equivalent to the Parker Transport Equation (PTE). The Graphics Processing Unit (GPU) parallelization of COSMICA code is a game changer in this field because it reduces the computational time of a standard simulation from the order of hundred of minutes to few of them. Furthermore, the code is capable of distributing the computations on clusters of machines with multiple GPUs, opening the way for scaling. In COSMICA we implemented the synchronous broadcasting of memory access for evolving variable samples, the rounding of virtual particle set numbers, to fulfil the GPU blocks, and the exploitation of shared memory to free registers. Furthermore, we compactify the mathematical computations and pass to the lighter momentum formulation of SDE. The first porting of the code on GPU architecture brings it to a speed-up of 40 X. The successful optimizations bring 1.5X speed-up.
paper
Astroparticles; Astrophysics; Cosmic rays; cuda; GPU; Parallel computing; SDE;
English
33rd Euromicro International Conference on Parallel, Distributed, and Network-Based Processing, PDP 2025 - 12-14 March 2025
2025
2025 33rd Euromicro International Conference on Parallel, Distributed, and Network-Based Processing (PDP)
9798331524937
2025
420
427
none
Cavallotto, G., Della Torre, S., La Vacca, G., Gervasi, M. (2025). COSMICA: a novel parallel GPU code for Cosmic Rays propagation in heliosphere. In 2025 33rd Euromicro International Conference on Parallel, Distributed, and Network-Based Processing (PDP) (pp.420-427). Institute of Electrical and Electronics Engineers Inc. [10.1109/PDP66500.2025.00065].
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/10281/553742
Citazioni
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
Social impact