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

MATLAB与OpenACC结合实现中值滤波算法并行优化
引用本文:黄伟建,王月兴,黄远. MATLAB与OpenACC结合实现中值滤波算法并行优化[J]. 河北工程大学学报(自然科学版), 2019, 36(2): 101-104
作者姓名:黄伟建  王月兴  黄远
作者单位:河北工程大学信息与电气工程学院,河北 邯郸,056000;河北工程大学信息与电气工程学院,河北 邯郸,056000;河北工程大学信息与电气工程学院,河北 邯郸,056000
基金项目:河北省自然科学基金资助项目(F2015402077);河北高等学校科学技术研究项目(QN2018073)
摘    要:针对当前基于CUDA的中值滤波并行加速算法存在的编程复杂,图像数据提取和显示环节实现繁琐等问题提出了利用MATLAB和OpenACC结合的并行算法。该算法采用MATLAB实现图像的提取并转换成数组文件,之后利用OpenACC实现串行代码到并行代码的转换并处理MATLAB转换的数组文件,最后通过MATLAB将滤波后的数据显示成图像。通过仿真实验进行中值滤波算法的加速实验,结果表明:提出的算法在大量减少代码转换工作量的情况下加速效果较串行程序提升明显,且与CUDA加速效果相当。

关 键 词:OpenACC  MATLAB  中值滤波  GPU并行优化
收稿时间:2019-02-26

Parallel optimization of median fltering algorithm based on the combination of MATLAB and OpenACC
HUANG Weijian,WANG Yuexing and HUANG Yuan. Parallel optimization of median fltering algorithm based on the combination of MATLAB and OpenACC[J]. Journal of Hebei University of Engineering(Natural Science Edition), 2019, 36(2): 101-104
Authors:HUANG Weijian  WANG Yuexing  HUANG Yuan
Affiliation:School of Information & Electrical Engineering, Hebei University of Engineering, Handan 056000, China,School of Information & Electrical Engineering, Hebei University of Engineering, Handan 056000, China and School of Information & Electrical Engineering, Hebei University of Engineering, Handan 056000, China
Abstract:In this paper, a parallel algorithm combining MATLAB and OpenACC is proposed for the complex programming problems of current CUDA-based median filtering parallel acceleration algorithm and the cumbersome implementation of image data extraction and display. The algorithm uses MATLAB to extract the image and converts it into an array file. Then it uses the OpenACC language to convert the serial code to the parallel code and processes the array file converted by MATLAB. Finally, the filtered data is displayed as an image through MATLAB. The acceleration experiment of the median filtering algorithm is carried out by simulation experiments. The experimental results show that the proposed algorithm accelerates the algorithm faster than the serial program in the case of greatly reducing the amount of code conversion workload. And it is equivalent to the effect of CUDA acceleration.
Keywords:OpenACC  MATLAB  Median filter  GPU parallel algorithm
本文献已被 CNKI 万方数据 等数据库收录!
点击此处可从《河北工程大学学报(自然科学版)》浏览原始摘要信息
点击此处可从《河北工程大学学报(自然科学版)》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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