A resource-aware workload scheduling method for unbalanced GEMMs on GPUs

计算机科学 工作量 调度(生产过程) 并行计算 分布式计算 操作系统 数学优化 数学
作者
Hui Liu,Boyu Diao,Wenxing Chen,Yongjun Xu
出处
期刊:The Computer Journal [Oxford University Press]
被引量:2
标识
DOI:10.1093/comjnl/bxae110
摘要

Abstract GEMM (General Matrix Multiplication) serves as a fundamental operator for deep learning computations. Especially in attention-based deep learning models, such as Bert, GPT, and SAM, the sizes of matrices involved in GEMMs exhibit an unbalanced distribution due to the variable input, resulting in the low utilization of hardware resources. To address the issue, this paper proposes inserting a novel GEMM processing layer into the deep learning inference stack and using an adaptive load balancing method to partition and schedule GEMM computation tasks. The method is implemented with hardware runtime resource information, such as the occupancy of computing units, etc. Experiment results show the remarkable performance of our method in unbalanced input GEMM scenarios, achieving an average performance improvement of 2.3x. The method also performs well in attention-based models (GPT-2 and SAM), achieving an average inference speed improvement of 1.1x. These findings highlight the effectiveness of resource-aware algorithm optimization, especially for computation task scheduling.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
在水一方应助自由春天采纳,获得10
1秒前
xu发布了新的文献求助10
1秒前
123321完成签到,获得积分10
1秒前
学霸业应助沉淀采纳,获得10
1秒前
island完成签到,获得积分20
2秒前
3秒前
天晴发布了新的文献求助10
3秒前
girl发布了新的文献求助10
3秒前
5秒前
super_mqr完成签到,获得积分10
5秒前
6秒前
6秒前
6秒前
科研通AI6.2应助山色青采纳,获得10
6秒前
慕青应助陈补天采纳,获得10
6秒前
6秒前
寻梦少年发布了新的文献求助10
6秒前
曾经念露完成签到,获得积分10
7秒前
CRP完成签到,获得积分10
7秒前
8秒前
wanci应助快乐仙人掌采纳,获得10
9秒前
Forsyl发布了新的文献求助10
9秒前
田様应助k1re4x采纳,获得10
10秒前
滕滕发布了新的文献求助10
11秒前
李法拉完成签到 ,获得积分10
11秒前
要爆炸了完成签到,获得积分10
11秒前
科研通AI2S应助西红柿小猫采纳,获得10
12秒前
12秒前
哈基米德应助不再方里采纳,获得20
13秒前
靓仔发布了新的文献求助10
13秒前
所所应助SPRETEND采纳,获得10
14秒前
科研通AI2S应助善良茗茗采纳,获得10
14秒前
14秒前
自由春天完成签到,获得积分10
14秒前
yinhe028完成签到,获得积分10
15秒前
Alex发布了新的文献求助10
15秒前
Hello应助科研通管家采纳,获得10
16秒前
科研通AI2S应助科研通管家采纳,获得10
16秒前
16秒前
16秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Geist der Kunst und Kultur 1000
Resistance Spot Welding Dataset for Automobile Body-in-White Quality Analysis 748
日本現代怪異事典 副読本 700
悉尼大学博士学位论文,题目:Modelling and testing of one-sided stitched laminated composites. 作者:Kristopher P. Plain 650
Machine Learning for Asset Management and Pricing 600
Numerical analysis of the coupled atmosphere-ocean models (CAO II). II 600
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7397476
求助须知:如何正确求助?哪些是违规求助? 9003395
关于积分的说明 19165096
捐赠科研通 7032860
什么是DOI,文献DOI怎么找? 3230325
关于科研通互助平台的介绍 2392691
邀请新用户注册赠送积分活动 2212130