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

布尔矩阵乘的分布式异构并行优化
引用本文:朱敏,唐波,赵娟,邹丹,李金才.布尔矩阵乘的分布式异构并行优化[J].计算机工程与科学,2017,39(4):634-640.
作者姓名:朱敏  唐波  赵娟  邹丹  李金才
作者单位:;1.国防科学技术大学海洋科学与工程研究院
基金项目:国家自然科学基金(61502516,61572515);国家重点研发计划(2016YFC1401803)
摘    要:布尔多项式求解是当今密码代数分析中的关键步骤,F4算法是布尔多项式求解的高效算法。分析了Lachartre为F4矩阵专门设计的高斯消去算法,针对其中布尔矩阵乘这一耗时的计算步骤,设计并实现了分布式异构(CPU+MIC)并行算法。布尔矩阵相对于普通矩阵主要体现在矩阵元素取值区间不一样上,由于布尔矩阵元素(0,1)导致矩阵乘操作的特殊性,普通矩阵乘的优化方法不能很好地满足布尔矩阵乘的需求。分别从布尔矩阵的存储、OpenMP多线程组织、访存、任务划分和调度等方面进行了性能优化,实现了布尔矩阵乘的分布式异构并行算法。通过随机生成布尔矩阵测试,优化后的分布式异构并行程序相较于分布式同构并行程序达到了2.45的加速比,体现了良好的性能提升。

关 键 词:F4算法  二元域  布尔矩阵乘  分布式异构并行
收稿时间:2016-12-15
修稿时间:2017-04-25

Distributed heterogeneous parallel Boolean matrix multiplication and its performance optimization
ZHU Min,TANG Bo,ZHAO Juan,ZOU Dan,LI Jin cai.Distributed heterogeneous parallel Boolean matrix multiplication and its performance optimization[J].Computer Engineering & Science,2017,39(4):634-640.
Authors:ZHU Min  TANG Bo  ZHAO Juan  ZOU Dan  LI Jin cai
Affiliation: (Institute of Marine Science and Engineering,National University of Defense Technology,Changsha 410073,China)
Abstract:The Boolean polynomial solution is a key step in the analysis of cryptographic algebra, and the F4 algorithm is an efficient algorithm for Boolean polynomial solution. We analyze the Gaussian elimination algorithm designed by Lachartre for F4 matrix, then design and implement the distributed heterogeneous (CPU + MIC) parallel algorithm for the time consumption calculation of Boolean matrix multiplication. The Boolean matrix differs from ordinary matrixes mainly in the value taking intervals of matrix elements. The optimization method of the general matrix multiplication cannot satisfy the Boolean matrix multiplication because the Boolean matrix element (0,1) leads to the particularity of the matrix multiplication operation. We realize the distributed heterogeneous parallel algorithms of Boolean matrix multiplication by optimizing its performance respectively on binary domain matrix storage, OpenMP multi threading organization, fetch, task partition and scheduling, etc. By randomly generating the Boolean matrix tests, the optimized distributed heterogeneous parallel program achieves an acceleration ratio of 2.45 compared with the distributed isomorphism parallel program, which shows a good performance improvement.
Keywords:F4 algorithm  binary domain  Boolean matrix multiplication  distributed heterogeneous parallel  
点击此处可从《计算机工程与科学》浏览原始摘要信息
点击此处可从《计算机工程与科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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