使用列表偏移合并排序器在硬件中快速高效地合并有序输入列表
Fast and Efficient Merge of Sorted Input Lists in Hardware Using List Offset Merge Sorters
AI总结:
本文提出硬件合并排序设备 LOMS 及其基础组件 S2MS,通过输入列表顺序偏移与行列交替排序,在 FPGA 上实现了比 Batcher 设备更快、资源占用更少且支持任意列表大小的多路有序列表合并。
摘要:
本文引入了一组新的硬件合并排序设备,它们能以快速高效的方式将多个有序输入列表合并为一个单一的有序输出列表。在每个合并排序器中,来自有序输入列表的值被排列在一个输入二维设置阵列中,但每个有序输入列表的顺序相对于其他每个有序输入列表的顺序存在偏移。在这些名为 List Offset Merge Sorters (LOMS) 的新设备中,最少数量的列排序阶段与行排序阶段交替进行,将输入设置阵列处理为最终的输出阵列,此时其已处于定义的有序状态。合并2个有序输入列表的 LOMS 2-way sorters 仅需2个合并阶段,且显著快于 Kenneth Batcher 先前最先进的 2-way merge devices,即 Bitonic Merge Sorters 和 Odd-Even Merge Sorters。LOMS 2-way sorters 在其第一阶段利用了最近引入的 Single-Stage 2-way Merge Sorters (S2MS)。LOMS 和 S2MS 设备均可合并任意大小混合的输入列表,而 Batcher 的合并排序器除非2个输入列表相等且为2的幂,否则难以设计。就其本身而言,S2MS 设备在本研究的目标 FPGA 设备中实现时是最快的 2-way merge sorters,但它们倾向于使用大量 LUT 资源。LOMS 2-way 设备比同等的 S2MS 设备使用更少的资源,使得当同等的 S2MS 设备无法放入特定 FPGA 时,一些大型 LOMS 设备仍能在该 FPGA 中实现。一个 List Offset 2-way sorter 将2个各有32个值的列表合并为包含这64个值的有序输出列表耗时 2.24 nS,相较于同等的 Batcher 设备实现了 2.63 的加速比。一个 LOMS 3-way merge sorter 合并3个各含7个值的有序输入列表,在 3.4 nS 内完全合并了这21个值,相较于同等最先进的 3-way merge device 实现了 1.36 的加速比。
英文摘要:
A new set of hardware merge sort devices are introduced here, which merge multiple sorted input lists into a single sorted output list in a fast and efficient manner. In each merge sorter, the values from the sorted input lists are arranged in an input 2-D setup array, but with the order of each sorted input list offset from the order of each of the other sorted input lists. In these new devices, called List Offset Merge Sorters (LOMS), a minimal set of column sort stages alternating with row sort stages process the input setup array into a final output array, now in the defined sorted order. LOMS 2-way sorters, which merge 2 sorted input lists, require only 2 merge stages and are significantly faster than Kenneth Batcher's previous state-of-the-art 2-way merge devices, Bitonic Merge Sorters and Odd-Even Merge Sorters. LOMS 2-way sorters utilize the recently-introduced Single-Stage 2-way Merge Sorters (S2MS) in their first stage. Both LOMS and S2MS devices can merge any mixture of input list sizes, while Batcher's merge sorters are difficult to design unless the 2 input lists are equal, and a power-of-2. By themselves, S2MS devices are the fastest 2-way merge sorters when implemented in this study's target FPGA devices, but they tend to use a large number of LUT resources. LOMS 2-way devices use fewer resources than comparable S2MS devices, enabling some large LOMS devices to be implemented in a given FPGA when comparable S2MS devices cannot fit in that FPGA. A List Offset 2-way sorter merges 2 lists, each with 32 values, into a sorted output list of those 64 values in 2.24 nS, a speedup of 2.63 versus a comparable Batcher device. A LOMS 3-way merge sorter, merging 3 sorted input lists with 7 values, fully merges the 21 values in 3.4 nS, a speedup of 1.36 versus the comparable state-of-the-art 3-way merge device.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。