Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
- OpenMPI

The 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 \