|
COMPUTER SCIENCE
The peculiarities of the parallel implementation of Particle-In-Cell method
A. A. Romanenkoa, A. V. Snytnikovb a Novosibirsk State University,
ul. Pirogova, 1, Novosibirsk, 630090, Russia
b Institute of Computational
Mathematics and Mathematical Geophysics, Siberian Branch of the Russian Academy of Sciences,
pr. Acad. Lavrent'eva, 6, Novosibirsk, 630090, Russia
Abstract:
Particle-In-Cell (PIC) method is widely used for plasma simulation and the GPUs appear to be the most efficient way to run this method. In this work we propose a technique that enables one to speed up one of the most time-consuming operations in the GPU implementation of the PIC method. The operation is particle reordering, or redistribution of particles between cells, which is performed after pushing. The reordering operation provides data locality which is the key performance issue of the PIC method. We propose to divide the reordering into two stages. First, gather the particles that are going to leave a particular cell into arrays, the number of arrays being equal to the number of neighbor cells (26 for 3D case). Second, each neighbor cell copies the particles from the necessary array to its own particle array. The second operation is done in 26 threads independently with no synchronization or waiting and involves no critical sections, semaphores, mutexes, atomic operations etc. It results in the more than 10 times reduction of the reordering time compared to the straightforward reordering algorithm.
Keywords:
optimization, GPU, simulation, PIC.
Received: 23.05.2018
Citation:
A. A. Romanenko, A. V. Snytnikov, “The peculiarities of the parallel implementation of Particle-In-Cell method”, Vestn. Udmurtsk. Univ. Mat. Mekh. Komp. Nauki, 28:3 (2018), 419–426
Linking options:
https://www.mathnet.ru/eng/vuu648 https://www.mathnet.ru/eng/vuu/v28/i3/p419
|
Statistics & downloads: |
Abstract page: | 245 | Full-text PDF : | 172 | References: | 39 |
|