吉林大学学报(理学版)

• 计算机科学 • 上一篇    下一篇

基于移动平台的异构并行字符串匹配算法

刘磊1, 李广力1, 徐玥1, 张桐搏1, 吕帅1,2,3   

  1. 1. 吉林大学 计算机科学与技术学院, 长春 130012; 2. 吉林大学 数学学院, 长春 130012;3. 吉林大学 符号计算与知识工程教育部重点实验室, 长春 130012
  • 收稿日期:2016-05-13 出版日期:2017-01-26 发布日期:2017-02-02
  • 通讯作者: 吕帅 E-mail:lus@jlu.edu.cn

Heterogeneous Parallel String Matching AlgorithmBased on Mobile Platform

LIU Lei1, LI Guangli1, XU Yue1, ZHANG Tongbo1, LV Shuai1,2,3   

  1. 1. College of Computer Science and Technology, Jilin University, Changchun 130012, China;2. College of Mathematics, Jilin University, Changchun 130012, China; 3. Key Laboratory of SymbolicComputation and Knowledge Engineering of Ministry of Education, Jilin University, Changchun 130012, China
  • Received:2016-05-13 Online:2017-01-26 Published:2017-02-02
  • Contact: LV Shuai E-mail:lus@jlu.edu.cn

摘要: 针对信息处理中常见的字符串匹配问题, 通过对经典的Brute Force算法和KnuthMorrisPratt算法进行分析, 根据GPU异构并行计算任务的分配特性, 设计一种针对KnuthMorrisPratt算法的数据重叠划分并行方案, 并提出一种基于移动平台的异构并行字符串匹配算法KMP_MOP. 在PowerVR移动平台环境下使用千万级长度的字符串数据对算法的性能进行测试, 同时对算法在其他平台的执行情况进行比较, 验证了并行算法的性能可移植性. 实验结果表明, KMP_MOP算法能充分利用移动平台中的GPU性能, 有效提高具有GPU的移动平台设备的字符串匹配效率.

关键词: 重叠划分, 移动平台, 字符串匹配, 异构并行计算

Abstract: For common string matching problem in information processing, we analyzed the classical algorithms as Brute Force and KnuthMorrisPratt. According to the distribution characteristics of GPU heterogeneous parallel computing task, we designed a parallel scheme for data overlapping partition based on KnuthMorrisPratt algorithm, and proposed a heterogeneous parallel string matching algorithm KMP_MOP based on mobile platform. We tested the algorithm performance in PowerVR mobile platform by using strings with lengths of tens of millions. Also we compared execution of algorithm running on
other platforms, verifying the portability of the parallel algorithm. The experimental result indicates that the KMP_MOP algorithm can make full use of the GPU performance in mobile platform, and effectively improve the string matching efficiency of mobile platform devices with GPU.

Key words: mobile platform, string matching, heterogeneous parallel computing, overlapping partition

中图分类号: 

  • TP391