A Fast and Simple Approach to Merge and Merge Sort Using Wide Vector Instructions

合并排序 计算机科学 并行计算 合并算法 排序算法 合并(版本控制) SIMD公司 分类 加速 快速排序 算法 情报检索
作者
Alex Watkins,Oded Green
出处
期刊:Irregular Applications: Architectures and Algorithms 被引量:3
标识
DOI:10.1109/ia3.2018.00012
摘要

Merging and sorting algorithms are the backbone of many modern computer applications. As such, efficient implementations are desired. Recent architectural advancements in CPUs (Central Processing Units), such as wider and more powerful vector instructions, allow for algorithmic improvements. This paper presents a new approach to merge sort using vector instructions. Traditional approaches to vectorized sorting typically utilize a bitonic sorting network (Batcher's Algorithm) which adds significant overhead. Our approach eliminates the overhead from this approach. We start with a branch-avoiding merge algorithm and then use the Merge Path algorithm to split up merging between the different SIMD lanes. Testing demonstrates that the algorithm not only surpasses the SIMD based bitonic counterpart, but that it is over 2.94x faster than a traditional merge, merging over 300M keys per second in one thread and over 16B keys per second in parallel. Our new sort reaches is over 5x faster than quicksort and 2x faster than Intel's IPP library sort, sorting over 5.3M keys per second for a single processor and in parallel over 500M keys per second and a speedup of over 2x from a traditional merge sort.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
斯文败类应助茉莉奶绿采纳,获得10
刚刚
留白地完成签到 ,获得积分10
刚刚
张一完成签到,获得积分10
1秒前
Owen应助syyyq采纳,获得10
1秒前
JamesPei应助雄杨采纳,获得10
1秒前
orixero应助大常采纳,获得10
3秒前
yuzhouhaohan完成签到,获得积分10
3秒前
LiWen完成签到,获得积分10
4秒前
5秒前
5秒前
cassie完成签到,获得积分10
5秒前
归零者完成签到,获得积分20
6秒前
yuyu完成签到,获得积分10
8秒前
happy的语墨完成签到 ,获得积分10
8秒前
SciGPT应助晚风撩人采纳,获得10
8秒前
pignai发布了新的文献求助10
9秒前
noob发布了新的文献求助10
10秒前
归零者发布了新的文献求助10
10秒前
俏皮元珊发布了新的文献求助10
12秒前
宇宙第一帅完成签到 ,获得积分10
13秒前
sang发布了新的文献求助10
14秒前
16秒前
16秒前
16秒前
16秒前
16秒前
小马甲应助义气的月光采纳,获得10
17秒前
orixero应助大力的图图采纳,获得10
18秒前
星辰大海应助好运采纳,获得10
19秒前
20秒前
NexusExplorer应助蓝色牛马采纳,获得10
20秒前
qinglinglie发布了新的文献求助10
21秒前
卿卿发布了新的文献求助10
21秒前
21秒前
kb发布了新的文献求助10
21秒前
周国煌发布了新的文献求助10
23秒前
受伤的谷芹完成签到 ,获得积分10
25秒前
所所应助阳光的蛋挞采纳,获得10
25秒前
tingting发布了新的文献求助10
25秒前
26秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
2026年中国辛酸癸酸聚乙二醇甘油酯行业市场现状调查及投资机会研判报告 1000
2026年中国辛酸癸酸聚乙二醇甘油酯行业市场规模及竞争格局分析报告 1000
48V Low-voltage Power Distribution Network (PDN) Architecture Industry Report, 2024 800
Fundamentals of Pharmaceutical and Biologics Regulations: A Global Perspective, Second Edition 700
Introducing the Learning Sciences 600
Resiliency Scale for Adolescents--Chinese Version 600
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7321514
求助须知:如何正确求助?哪些是违规求助? 8937101
关于积分的说明 18947263
捐赠科研通 6979531
什么是DOI,文献DOI怎么找? 3214775
关于科研通互助平台的介绍 2382407
邀请新用户注册赠送积分活动 2194038