计算机科学与应用

Vol.4 No.9 (September 2014)

OpenMP在多核处理器上的应用研究
The Application Research of OpenMP on Multicore Processors

 

作者:

王孝平 , 董秀成 , 谢维成 :西华大学电气信息学院,成都

 

关键词:

多核编程并行计算OpenMPMulticore Programming Parallel Computing OpenMP

 

摘要:

多核操作系统在解决通用进程的分配和调度等宏观问题上表现优越,而对于应用层的多核数据并行计算没有做到精确控制。本文深入研究了OpenMP的特性,提出了一种应用层开发多核并行程序的机制,对其性能进行了全方位的研究比较。实验结果表明,利用这种机制,可以方便灵活的控制多核数据并行粒度,充分利用多核计算机资源,提升应用程序的实时性。对于千万级别的运算量,运行时间上有较大的改进:双核并行为非并行的0.5,四核并行为非并行的0.38,八核并行为非并行的0.19,十六核并行为非并行的0.14。

Multicore operating system is superior in assigning and scheduling the general processes, but it is unsatisfying in processing parallel data of the application layer. We study the characteristics of OpenMP and propose a mechanism for the development of application-layer multi-core parallel program. We conduct a comprehensive study and compare its performance. Our experimental re-sults show that the mechanism is convenient and flexible to control the multicore parallel granu-larity of data, take advantage of multicore computing resources, and enhance the real-time of ap-plications. To the ten million of computation, there are greater improvements in running time: the ratio is 0.5:1 between the dual-core and the non-parallel systems; the ratio is 0.38:1 between the quad-core and the non-parallel systems; the ratio is 0.19:1 between the eight-core and the non- parallel systems; the ratio is 0.14:1 between the sixteen-core and the non-parallel systems.

文章引用:

王孝平 , 董秀成 , 谢维成 (2014) OpenMP在多核处理器上的应用研究。 计算机科学与应用, 4, 175-180. doi: 10.12677/CSA.2014.49025

 

参考文献

分享
Top