计算机应用 ›› 2013, Vol. 33 ›› Issue (03): 821-824.DOI: 10.3724/SP.J.1087.2013.00821

• 先进计算 • 上一篇    下一篇

多核机群上通信高效的整数序列并行排序方法

柯琦1,2,钟诚1*,陈清媛1,陆向艳1   

  1. 1.广西大学 计算机与电子信息学院, 南宁 530004;
    2.广西财经学院 信息与统计学院, 南宁 530003
  • 收稿日期:2012-09-24 修回日期:2012-11-01 出版日期:2013-03-01 发布日期:2013-03-01
  • 通讯作者: 钟诚
  • 作者简介:柯琦(1985-),女,广西恭城人,助教,硕士,主要研究方向:并行分布计算; 钟诚(1964-),男,广西桂平人,教授,博士生导师,博士,主要研究方向:并行分布计算、可信计算与软件; 陈清媛(1987-),女,贵州金沙人,硕士研究生,主要研究方向:可信计算与软件; 陆向艳(1973-),女,广西南宁人,副教授,主要研究方向:并行分布计算。
  • 基金资助:

    国家自然科学基金资助项目(60963001)。

Communication-efficient parallel sorting integers sequence on multi-core cluster

KE Qi1,2, ZHONG Cheng1*, CHEN Qingyuan1, LU Xiangyan1   

  1. 1.Computer and Electronic Information College, Guangxi University, Nanning Guangxi 530004, China;
    2.School of Information and Statistics, Guangxi University for Finance and Economics, Nanning Guangxi 530003, China
  • Received:2012-09-24 Revised:2012-11-01 Online:2013-03-01 Published:2013-03-01

摘要: 建立一个适用于整数序列排序的数据分配模型,在多核计算节点组成的异构机群上设计通信高效的整数序列并行算法。所提出的数据分配模型依据机群中各节点不同的计算能力、通信速率和存储容量,动态计算出调度分配给各节点的数据块的大小以平衡各个节点的负载。所设计的并行排序算法利用整数序列的特性,主节点采取两轮分发数据与接收结果的方法,从节点运用分桶打包方式返回有序的整数子序列给主节点,主节点采用桶映射方法将各个有序子序列直接整合成最终有序序列,以减少需要耗费较多通信时间的数据归并操作。分析与实验测试结果表明,给出的多核机群上的整数序列并行排序算法高效,具有良好的可扩展性。

关键词: 整数排序, 并行算法, 多核机群, 数据分配

Abstract: A data distribution strategy and a communication-efficient parallel algorithm for sorting integers sequence were proposed on the heterogeneous cluster with multi-core machines. The presented data distribution model properly utilized different computation speed, communication rate and memory capacity of each computing node to dynamically compute the size of the data block to be assigned to each node to balance the loads among nodes. In the proposed parallel sorting algorithm, making use of the characteristic of integers sequence, master node distributed the data blocks to the salve nodes and received the sorted subsequences with two-round mode, each salve node returned its sorted subsequence to master node by bucket-packing method, and master node linked its received sorted subsequences to form directly a final sorted sequence by the bucket mapping in order to reduce the data merge operations with large communication cost. The analysis and experimental results on the heterogeneous cluster with multi-core machines show that the presented parallel sorting integers sequence algorithm is efficient and scalable.

Key words: integers sorting, parallel algorithm, multi-core cluster, data distribution

中图分类号: