计算机科学 ›› 2013, Vol. 40 ›› Issue (3): 79-85.

• 2012多值逻辑专栏 • 上一篇    下一篇

基于OpenCL的均值平移算法在多个众核平台的性能优化研究

庞 旭,张云泉,龙国平,贾海鹏,颜深根   

  1. (中国科学院软件研究所并行软件与计算科学实验室 北京100190);(中国科学院软件研究所计算机科学国家重点实验室 北京100190);(中国科学院大学 北京100190);(中国海洋大学信息科学与工程学院 青岛266100)
  • 出版日期:2018-11-16 发布日期:2018-11-16

Research on Mean Shift Algorithm Using OpenCL on Multiple Many-core Platforms

  • Online:2018-11-16 Published:2018-11-16

摘要: OpenCL作为一种面向多种平台、通用目的的编程标准,已经对许多应用程序进行了加速。由于平台硬件和软件环境的差异,通用的优化方法不一定在所有平台都有很好的加速。通过对均值平移算法在GPU和APU平台的优化,探讨了不同平台各种优化方法的贡献力,一方面研究各个平台的计算特性,另一方面体会不同优化方法的优劣,在优劣的相互转化中寻求最优的解决方案。实验表明,算法并行优化前、后在AVIV 5850,Tesla 02050和APU A6365。上分别达到了9.68, 5.74和1.27倍加速,并行相比串行程序达到79.73,93.88和2.22倍加速,前两个平台OpcnCL版本相比,CUVA版本的OpenCV程序达到1.27和1.24倍加速。

关键词: UPU,APU,OpenCL,均值平移算法

Abstract: As a general-purpose programming standard for multiple platforms, OpenCL has accelerated many applications. Due to the differences of different platforms in hardware and software environments, general optimization methods may not accelerate the application well for all. Taking the optimization of the mean shift algorithm on GPU and APU platforms as an example, the paper provided several insights on contributions of various optimization methods on different platforms. On one hand, we explored the architectures of different platforms. On the other hand, we compared the pros and cons of different optimization methods. Based on meticulous evaluations of the pros and cons, we looked for the optimal solution. Experimental results show that, on AMD 5850, Tesla C2050 and APU A6-3650 platforms, the optimized algorithm achieves 9.68 X,5.74 X and 1.27 X speedups, respectively, and 79.73 X,93.88 X and 2.22 X speedups comparcel to the serial version, respectively, and 1.27 X and 1.24 X speedups compared to the CUDA version OpenCV program for the first two platforms,respectively.

Key words: GPU, APU, OpenCL, Mean shift

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!