Webinaire ASNUM
Alain Miniussi et Elena Lega
Observatoire de la Côte d’Azur
Planet-disk interactions with the fargOCA code: transitioning from CPUs to Hybrid Architectures with Kokkos
Voir le Replay : https://astrotube.obspm.fr/w/hK44dwS5M5qcJPRZSxXHie
Accès aux tutoriels :https://gitlab.oca.eu/DISC/presentations/fargoca/asnum-20241209-kokkos
The original version of the FARGO code (Fast Advection in Rotating Gaseous Objects) was written in C in 2000 by F. Masset. It simulated a 2D gas disk interacting gravitationally with its host star and embedded planets. In 2013, the code was extended to simulate a 3D disk at the OCA, incorporating radiative and internal energy treatment. This extension gave rise to the name fargOCA (FARGO with Colatitude Added at OCA). Parallelization was implemented using MPI and OpenMP. Between 2013 and 2018, researchers and postdocs added various features, such as a non-uniform grid for zooming in on planetary dynamics and stellar irradiation routines. Version control was managed with SVN.
In 2018, the code underwent refactoring to improve structure and usability. It was rewritten in C++, introducing object-oriented classes, integration tests, and transitioning to GitLab for version control. The refactor aimed to ensure the code remained functional while accommodating a growing and evolving user community, including PhD students, postdocs and students from the local Astrophysics master’s program.
To enhance performance, GPU acceleration was integrated in 2021. Kokkos was adopted to ensure portability and allow transition without interrupting code exploitation, offering a unified programming model for CPUs and GPUs. The code now runs efficiently on local clusters and national supercomputing centers. In this webinar, we will review the evolution of the code, highlighting performance improvements and its impact on research projects.