Porting and optimizing MAGFLOW on CUDA

Giuseppe Bilotta, Eugenio Rustico, Alexis Hérault, Annamaria Vicari, Giovanni Russo, Ciro Del Negro, Giovanni Gallo


The MAGFLOW lava simulation model is a cellular automaton developed by the Sezione di Catania of the Istituto Nazionale di Geofisica e Vulcanologia (INGV) and it represents the peak of the evolution of cell-based models for lava-flow simulation. The accuracy and adherence to reality achieved by the physics-based cell evolution of MAGFLOW comes at the cost of significant computational times for long-running simulations. The present study describes the efforts and results obtained by porting the original serial code to the parallel computational platforms offered by modern video cards, and in particular to the NVIDIA Compute Unified Device Architecture (CUDA). A number of optimization strategies that have been used to achieve optimal performance on a graphic processing units (GPU) are also discussed. The actual benefits of running on the GPU rather than the central processing unit depends on the extent and duration of the simulated event; for large, long-running simulations, the GPU can be 70-to-80-times faster, while for short-lived eruptions with a small extents the speed improvements obtained are 40-to-50 times.


GPGPU, modeling, HPC, parallel computation, hazard, lava.

Full Text:



DOI: https://doi.org/10.4401/ag-5341
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it (Read more).

Published by INGV, Istituto Nazionale di Geofisica e Vulcanologia - ISSN: 2037-416X