Skip to main navigation Skip to search Skip to main content

A Comparative Evaluation of Parallel Programming Python Tools for Particle-in-Cell on Symmetric Multiprocessors

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

1 Scopus citations

Abstract

The Python programming language has established itself as a popular alternative for implementing scientific computing workflows. Its massive adoption across a wide spectrum of disciplines has created a strong community that develops tools for solving complex problems in science and engineering. In particular, there are several parallel programming libraries for Python codes that target multicore processors. We aim at comparing the performance and scalability of a subset of three popular libraries (Multiprocessing, PyMP, and Torcpy). We use the Particle-in-cell (PIC) method as a benchmark. This method is an attractive option for understanding physical phenomena, specially in plasma physics. A pre-existing PIC code implementation was modified to integrate Multiprocessing, PyMP, and Torcpy. The three tools were tested on a manycore and on a multicore processor by running different problem sizes. The results obtained consistently indicate that PyMP has the best performance, Multiprocessing showed a similar behavior but with longer execution times, and Torcpy did not properly scale when increasing the number of workers. Finally, a just-in-time (JIT) alternative was studied by using Numba, showing execution time reductions of up to 43%.

Original languageEnglish
Title of host publicationHigh Performance Computing - 9th Latin American Conference, CARLA 2022, Revised Selected Papers
EditorsPhilippe Navaux, Carlos J. Barrios H., Carla Osthoff, Ginés Guerrero
PublisherSpringer Science and Business Media Deutschland GmbH
Pages1-15
Number of pages15
ISBN (Print)9783031238208
DOIs
StatePublished - 2022
Event9th Latin American High Performance Computing Conference, CARLA 2022 - Porto Alegre, Brazil
Duration: 26 Sep 202230 Sep 2022

Publication series

NameCommunications in Computer and Information Science
Volume1660 CCIS
ISSN (Print)1865-0929
ISSN (Electronic)1865-0937

Conference

Conference9th Latin American High Performance Computing Conference, CARLA 2022
Country/TerritoryBrazil
CityPorto Alegre
Period26/09/2230/09/22

Keywords

  • Parallel programming
  • Particle-in-cell
  • Python

Fingerprint

Dive into the research topics of 'A Comparative Evaluation of Parallel Programming Python Tools for Particle-in-Cell on Symmetric Multiprocessors'. Together they form a unique fingerprint.

Cite this