📜 ⬆️ ⬇️

Comparing OpenMP on different platforms

Hello! Recently met a wonderful thing like OpenMP, there are many in the open spaces
Descriptions here or here , but there are no beautiful graphs that would show the effectiveness of this technology. In this post I will try to visually show the effectiveness of working with OpenMP on various platforms. Who cares welcome!



In the modern world there are many different operating systems and new powerful processors that allow you to perform complex calculations with relatively little time. This study was conducted in order to find out in which environment it is most effective to perform laborious calculations, as well as ways to reduce the time spent on calculations.


For the study, an algorithm was chosen - calculating the number of PIs using an integral formula, since this algorithm lends itself well to parallelization and is rather laborious from the point of view of calculations.


For parallelization of the algorithm, it was decided to use openMP technology. This technology allows you to effectively write the same code for different runtime environments, minimizing the errors that are made when a programmer writes code using p_threads or Windows Threads, in Linux and Windows, respectively.


For comparison, 3 runtime environments were selected:



Tests were conducted on a computer with a processor.



Now the graphics


The data presented on the graphs are averaged; 5 test runs were performed for each OS. The ordinate axis on the graphs is time per second, the values ​​of the divisions of the abscissa axis are given in the table.


one23fourfive67eight9teneleven121314
one2four6eightten12sixteen32641282565121024




findings



Thanks for attention.


')

Source: https://habr.com/ru/post/325360/


All Articles