超级计算机富岳上并行排序的性能评估
Performance Evaluation of Parallel Sortings on the Supercomputer Fugaku
AI总结:
本研究在超级计算机Fugaku上实现了两种基于样本排序的多线程并行排序算法,并证明结合BlockQuicksort与选择树的第二种算法在各类数据下均实现高速度与高并行效率。
摘要:
排序是最基础的算法之一,随着现代超级计算机每个节点中CPU核心数量趋于增加,开发高度并行的排序程序在高性能计算中变得日益重要。在本研究中,我们实现了两种基于样本排序的多线程排序算法,并在超级计算机Fugaku上比较了它们的性能。第一种算法将输入序列划分为多个块,对每个块进行排序,然后通过以固定间隔从每个块中采样来选择枢轴。随后使用这些枢轴对每个块进行划分,并将不同块中的划分合并为一个有序序列。第二种算法与第一种算法的不同之处仅在于选择枢轴的方式,它使用二分搜索来选择枢轴,使得每个划分中的元素数量相等。我们比较了这两种算法结合不同顺序排序和多路归并算法时的性能。我们证明,第二种算法在顺序排序时使用BlockQuicksort(一种通过减少条件分支来加速的快速排序)进行顺序排序,并在归并时使用选择树,对于各种输入数据类型和数据规模均展现出持续的高速度和高并行效率。
英文摘要:
Sorting is one of the most basic algorithms, and developing highly parallel sorting programs is becoming increasingly important in high-performance computing because the number of CPU cores per node in modern supercomputers tends to increase. In this study, we have implemented two multi-threaded sorting algorithms based on samplesort and compared their performance on the supercomputer Fugaku. The first algorithm divides an input sequence into multiple blocks, sorts each block, and then selects pivots by sampling from each block at regular intervals. Each block is then partitioned using the pivots, and partitions in different blocks are merged into a single sorted sequence. The second algorithm differs from the first one in only selecting pivots, where the binary search is used to select pivots such that the number of elements in each partition is equal. We compare the performance of the two algorithms with different sequential sorting and multiway merging algorithms. We demonstrate that the second algorithm with BlockQuicksort (a quicksort accelerated by reducing conditional branches) for sequential sorting and the selection tree for merging shows consistently high speed and high parallel efficiency for various input data types and data sizes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。