Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/waelkarman/parallel-executions
Exploring parallel programming using C++ primitives, POSIX Threads and OpenMPI.
https://github.com/waelkarman/parallel-executions
cplus20 pthread
Last synced: about 1 month ago
JSON representation
Exploring parallel programming using C++ primitives, POSIX Threads and OpenMPI.
- Host: GitHub
- URL: https://github.com/waelkarman/parallel-executions
- Owner: waelkarman
- Created: 2024-03-26T12:32:15.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-21T11:51:19.000Z (8 months ago)
- Last Synced: 2024-04-21T12:56:59.875Z (8 months ago)
- Topics: cplus20, pthread
- Language: C++
- Homepage:
- Size: 507 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# parallel programming [in development]
The main goal is to master parallel programming using C++ primitives, POSIX Threads and OpenMPI.- C++/20 primitives
- POSIX Threads
- OpenMPIThe gif shows the behaviour implemented into the posix_singlecore_scheduler file as can be seen into htop observing the PID the application is creating a thread for each core sequentially.
The gif shows the behaviour implemented into the thread_pool file as can be seen into htop the thread PID are always the same to process 100 different tasks. Use the same threads avoid the overhead introduced by creation and deletion of the threads.
# C++/20 build within a Docker
Use the dockerfile to compile the C++/20 code if your system does not support it.Please build using the following commands:
> sudo docker build -t cpp20-runner .
To run:
> sudo docker run cpp20-runner ./\
To stop the execution find the ID of your container using:
> sudo docker ps
To stop:
> sudo docker stop \