SKIRT: Hybrid parallelization of radiative transfer simulations
Abstract
We describe the design, implementation and performance of the new hybrid parallelization scheme in our Monte Carlo radiative transfer code SKIRT, which has been used extensively for modelling the continuum radiation of dusty astrophysical systems including late-type galaxies and dusty tori. The hybrid scheme combines distributed memory parallelization, using the standard Message Passing Interface (MPI) to communicate between processes, and shared memory parallelization, providing multiple execution threads within each process to avoid duplication of data structures. The synchronization between multiple threads is accomplished through atomic operations without high-level locking (also called lock-free programming). This improves the scaling behaviour of the code and substantially simplifies the implementation of the hybrid scheme. The result is an extremely flexible solution that adjusts to the number of available nodes, processors and memory, and consequently performs well on a wide variety of computing architectures.
- Publication:
-
Astronomy and Computing
- Pub Date:
- July 2017
- DOI:
- arXiv:
- arXiv:1705.04702
- Bibcode:
- 2017A&C....20...16V
- Keywords:
-
- Radiative transfer - methods;
- Numerical - software and its engineering;
- Multithreading - software and its engineering;
- Multiprocessing / multiprogramming / multitasking - software and its engineering;
- Concurrency control - software and its engineering;
- Process synchronization;
- Astrophysics - Instrumentation and Methods for Astrophysics;
- Astrophysics - Astrophysics of Galaxies
- E-Print:
- 21 pages, 20 figures