Performance Analysis of C and Python Parallel Implementations on a Multicore System Using Particle Simulation

No Thumbnail Available
Authors
Asaduzzaman, Abu
Telikepalli, Venkata S. P. T.
Uddin, Md Raihan
Advisors
Issue Date
2024
Type
Conference paper
Keywords
C/C++ , MPI , OpenMP , Parallel programming , Performance analysis , Python
Research Projects
Organizational Units
Journal Issue
Citation
Asaduzzaman, A., Telikepalli, V.S.P.T., Uddin, M.R. Performance Analysis of C and Python Parallel Implementations on a Multicore System Using Particle Simulation. (2024). International Conference on Artificial Intelligence, Computer, Data Sciences, and Applications, ACDSA 2024. DOI: 10.1109/ACDSA59508.2024.10467885
Abstract

Multicore architecture has become the dominant trend in modern computer design to achieve high performance. To take advantage of multicore systems and develop well-performing applications, various multithreading libraries and application programming interfaces (APIs) are introduced. However, it is often challenging to decide which programming language should provide the best performance for a given set of architecture and applications. In this work, we investigate the performance of C language with Open Multi-Processing (OpenMP) and Message Passing Interface (MPI) and Python language with multithreading and MPI using particle simulation application. We simulate 1K, 5K, and 10K particles on a three-core system with CentOS operating system. Experimental results show that OpenMP C code provides consistent increase in speedup for up to 12 threads. Python may be easy for beginners to learn, but the results suggest that C clearly outperforms Python for particle simulation. © 2024 IEEE.

Table of Contents
Description
Publisher
Institute of Electrical and Electronics Engineers Inc.
Journal
International Conference on Artificial Intelligence, Computer, Data Sciences, and Applications, ACDSA 2024
Book Title
Series
2024 International Conference on Artificial Intelligence, Computer, Data Sciences, and Applications, ACDSA 2024
1 February 2024 through 2 February 2024
PubMed ID
ISSN
EISSN