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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Cavallotto, Giovanni, Della Torre, Stefano, La Vacca, Giuseppe, Gervasi, Massimo
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912226301968384
author Cavallotto, Giovanni
Della Torre, Stefano
La Vacca, Giuseppe
Gervasi, Massimo
author_facet Cavallotto, Giovanni
Della Torre, Stefano
La Vacca, Giuseppe
Gervasi, Massimo
contents 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 40X. The successful optimizations bring 1.5X speed-up.
format Preprint
id arxiv_https___arxiv_org_abs_2502_06319
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle COSMICA: a novel parallel GPU code for Cosmic Rays propagation in heliosphere
Cavallotto, Giovanni
Della Torre, Stefano
La Vacca, Giuseppe
Gervasi, Massimo
Computational Physics
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 40X. The successful optimizations bring 1.5X speed-up.
title COSMICA: a novel parallel GPU code for Cosmic Rays propagation in heliosphere
topic Computational Physics
url https://arxiv.org/abs/2502.06319