Skip to content

m-samadi/heuristic-mapping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Heuristic task-to-thread mapping

This program simulates task-to-thread mapping for OpenMP applications based on several heuristics.

Version

The simulator includes two versions, but the results are produced based on the first version. However, there are not many changes in the second version, just a few (e.g., renaming the parameters).

Furthermore, each version is developed with/without overhead. The code with overhead is written based on threads (to emulate the simulation like the implementation), while the code without overhead is written based on loop.

Simulation parameters

The simulation parameters are set by default. Therefore, they can be modified at the beginning of main.py based on application requirements.

Graphical output

If it is needed to produce graphical outputs at the end of the simulation, set the variable ‘graphic_result’ to 1. Note that there is a limitation in drawing the shapes in Python. Therefore, if number of tasks is many, keep it disabled.

Run

The simulation is run on each version using the following command:

python main.py

If the DAG is generated based on a predefined graph (i.e., benchmark), press 'y'; unless press 'n'. It is worth noting that the 'PIL' module should be installed before running.

About

Heuristic task-to-thread mapping

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages