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
1秒前
1秒前
2秒前
俊秀的大白菜真实的钥匙完成签到,获得积分10
2秒前
wei发布了新的文献求助10
3秒前
王一博发布了新的文献求助10
3秒前
暴走诺亚完成签到,获得积分10
3秒前
zxn课题组完成签到,获得积分10
4秒前
AAA智慧批发纳西妲完成签到,获得积分10
4秒前
4秒前
英姑应助喵喵采纳,获得10
5秒前
石头关注了科研通微信公众号
5秒前
momo1235发布了新的文献求助20
6秒前
8秒前
Daniel发布了新的文献求助10
9秒前
10秒前
10秒前
10秒前
搜集达人应助117采纳,获得10
11秒前
11秒前
11秒前
星辰大海应助wei采纳,获得10
12秒前
maozi发布了新的文献求助10
13秒前
shawn发布了新的文献求助30
13秒前
小马甲应助在切难桃采纳,获得10
14秒前
零零柒完成签到 ,获得积分10
14秒前
猴子大王发布了新的文献求助10
15秒前
15秒前
miemie完成签到,获得积分10
16秒前
找回自己发布了新的文献求助10
16秒前
刘宇皓完成签到,获得积分10
16秒前
熊阿阿发布了新的文献求助10
17秒前
ZZ发布了新的文献求助10
18秒前
winnie完成签到,获得积分10
19秒前
李健的小迷弟应助kaxif采纳,获得10
19秒前
19秒前
朱1591完成签到,获得积分10
19秒前
无花果应助王大可采纳,获得10
20秒前
wjf发布了新的文献求助10
21秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Introducing the Learning Sciences 1000
2026年中国辛酸癸酸聚乙二醇甘油酯行业市场现状调查及投资机会研判报告 1000
2026年中国辛酸癸酸聚乙二醇甘油酯行业市场规模及竞争格局分析报告 1000
Resiliency Scale for Adolescents--Chinese Version 800
48V Low-voltage Power Distribution Network (PDN) Architecture Industry Report, 2024 800
Fundamentals of Pharmaceutical and Biologics Regulations: A Global Perspective, Second Edition 700
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7326080
求助须知:如何正确求助?哪些是违规求助? 8941195
关于积分的说明 18960927
捐赠科研通 6982288
什么是DOI,文献DOI怎么找? 3215744
关于科研通互助平台的介绍 2382867
邀请新用户注册赠送积分活动 2195052