APP下载

OpenCL异构并行编程在遥感影像处理中的应用

2018-11-26于梦华

电脑知识与技术 2018年23期

于梦华

摘要:OpenCL是众多异构并行计算平台的一个通用的编程框架,并行计算领域因为OpenCL模型的加入,基于异构系统的算法加速越来越多地被应用于遥感图像处理中。在遥感图像处理方面,众多的图像处理的算法程序都是针对像素的操作,需要逐像素的循环迭代进行。这些类型算法的处理过程都具有以下特点:数据量丰富,需要进行较密集的计算;数据处理方式固定,每个像素执行相同的操作,具有较高的自动化程度;数据处理过程并行性较高,各像素计算形式相同,且相邻像素间的交互是局部的。所以,遥感影像的多数处理算法适合于基于GPU的算法并行改进方式。

关键词:OpenCL;CPU+GPU;并行改进;算法加速;加速比

中图分类号:P208 文献标识码:A 文章编号:1009-3044(2018)23-0084-03

Abstract: OpenCL is a universal programming framework for heterogeneous parallel computing platforms. Because of the addition of the OpenCL model, algorithm acceleration based on heterogeneous systems is increasingly used in remote sensing image processing.In remote sensing image processing, many image processing algorithms are aimed at the operation of pixels and need to be iteratively cycled by pixels.The processing methods of these types of algorithms all have the following characteristics: the data volume is abundant, and more intensive calculations are needed; the data processing methods are fixed, each pixel performs the same operation, and has a high degree of automation; the data processing process has high parallelism. Each pixel is calculated in the same form, and the interaction between adjacent pixels is local. Therefore, most of the processing algorithms for remote sensing images are suitable for parallel improvement of GPU-based algorithms.

Key words: OpenCL; CPU + GPU; parallel improvement; algorithm acceleration; acceleration ratio

OpenCL异构并行编程模型是以OpenCL软件模型为基础构建的CPU+GPU异构系统平台,在异构系统平台上实现影像处理算法的并行计算,理论上可以大大提升影像处理算法的速度。OpenCL提供了基于数据和基于任务两种并行方式,它同时支持多种显卡设备,支持OpenCL的平台在迅速增长,众多硬件平台厂商采用和支持或计划支持OpenCL,OpenCL模型的跨平台通用性,得到了研究学者的广泛支持,它的适用范围在不断扩大[1]。

随着集成电路技术的发展进步和异构并行计算架构的发展,目前,多核心CPU并行與CPU+GPU异构并行两种并行算法改进模式已经成为算法并行计算研究中常用的方式。虽然在国内外研究中并行模型在其它多种研究领域都得到了发展,但是由于异构并行系统的应用复杂性与并行软件模型的局限性,基于GPU的并行计算一始终未在遥感影像处理领域得到发展。……

登录APP查看全文