首页 | 本学科首页   官方微博 | 高级检索  
     

基于OpenCL的拉普拉斯图像增强算法优化研究
引用本文:贾海鹏,张云泉,龙国平,徐建良,李炎.基于OpenCL的拉普拉斯图像增强算法优化研究[J].计算机科学,2012,39(5):271-277.
作者姓名:贾海鹏  张云泉  龙国平  徐建良  李炎
作者单位:1. 中国科学院软件研究所并行软件与计算科学实验室 北京100190;中国海洋大学信息科学与工程学院 青岛266100
2. 中国科学院软件研究所并行软件与计算科学实验室 北京100190;中国科学院软件研究所计算机科学国家重点实验室 北京100190
3. 中国科学院软件研究所并行软件与计算科学实验室 北京100190
4. 中国海洋大学信息科学与工程学院 青岛266100
5. 中国科学院软件研究所并行软件与计算科学实验室 北京100190;中国科学院研究生院 北京100190
基金项目:国家自然科学基金,国家自然科学基金重点项目,国家“863”计划基金,ISCAS-AMD联合fusion软件中心资助
摘    要:OpenCL是面向异构计算平台的通用编程框架,然而由于硬件体系结构的差异,如何在平台间功能移植的基础上实现性能移植仍是有待研究的问题。当前已有算法优化研究一般只针对单一硬件平台,它们很难实现在不同平台上的高效运行。在分析了不同GPU平台底层硬件架构的基础上,从Global Memory的访存效率、GPU计算资源的有效利用率及其硬件资源的限制等多个角度考察了不同优化方法在不同GPU硬件平台上对性能的影响;并在此基础上实现了基于OpenCL的拉普拉斯图像增强算法。实验结果表明,优化后的算法在不考虑数据传输时间的前提下,在AMD和NVIDIA GPU上都取得了3.7~136.1倍、平均56.7倍的性能加速,优化后的kernel比NVIDIA NPP库中相应函数也取得了12.3%~346.7%、平均143.1%的性能提升,验证了提出的优化方法的有效性和性能可移植性。

关 键 词:OpenCL  通用计算  拉普拉斯算法  跨平台

Research on Laplace Image Enhancement Algorithm Optimization Based on OpenCL
JIA Hai-peng , ZHANG Yun-quan , LONG Guo-ping , XU Jian-liang , LI Yan.Research on Laplace Image Enhancement Algorithm Optimization Based on OpenCL[J].Computer Science,2012,39(5):271-277.
Authors:JIA Hai-peng  ZHANG Yun-quan  LONG Guo-ping  XU Jian-liang  LI Yan
Affiliation:1,4(Laboratory of Parallel Software and Computational Science,Institute of Software,Chinese Academy of Sciences,Beijing 100190,China)1(School of Information Science and Technology,Ocean University of China,Qingdao 266100,China)2(State Key Laboratory of Computing Science,Chinese Academy of Sciences,Beijing 100190,China)3(Graduate University,Chinese Academy of Sciences,Beijing 100190,China)4
Abstract:OpenCL is a general-purpose programming framework forheterogeneous computing platforms,however,due to the differences in hardware architecture,how to achieve performance portability on different platforms based on the function portability is still to be studied.Currently most of the researches on algorithm optimization are aimed at a single hardware platform,and difficult to achieve the efficient running on different platforms.This paper analysed the differences between the underlying hardware architectures of GPU,and studied the effects of different GPU platforms using different optimization methods on performance from the access efficiency of global memory,full use of the GPU compute resource,the constraints with hardware resource and other aspects.Based on this,the Laplace image enhancement algorithm based on OpenCL was implemented.Experimental results show that optimized algorithm gets 3.7~136.1times and 56.7 times on average speedup(without calculate the data transfer time) on both AMD and NVIDIA GPU,and the performance of the optimized kernel increases 12.3%~346.7% and 143.1% on average than the CUDA version in NVIDIA NPP library,which verifies the effectiveness and cross-platform ability of optimization methods.
Keywords:OpenCL  General-purpose computing  Laplace  Across platform
本文献已被 CNKI 万方数据 等数据库收录!
点击此处可从《计算机科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号