- 4
- 0
- 约1.96万字
- 约 5页
- 2019-05-12 发布于山东
- 举报
串行程序的任务DAG图构造算法①.PDF
2012 年 第 2 1 卷 第 9 期 计 算 机 系 统 应 用
①
串行程序的任务DAG 图构造算法
孙立斌, 邓 蓉, 陈闳中
( 同济大学 计算科学与技术系, 上海 201804)
( 同济大学 嵌入式系统与服务计算教育部重点实验室, 上海 201804)
摘 要: 任务 DAG 图是刻画程序中各任务间依赖关系的一种手段, DAG 图上除了标有任务间的依赖关系, 还记
录了各任务的计算量和任务之间的通信量, 这些信息共同构成了任务调度的依据, 国内外有许多基于任务 DAG
图的调度算法研究, 但通过分析串行程序的相关性来构造任务 DAG 图的研究却不多见. 分析了串行程序中存在
的数据相关性和控制相关性, 就程序中的顺序, 分支, 循环三种基本结构进行分别讨论, 提出了一种串行程序任
务 DAG 图的构造算法.
关键词: 串行程序并行化; DAG 图; 数据相关性; 控制相关性; 资源相关性
Algorithm for Constructing Task DAGs of Serial Programs
SUN Li-Bin, DENG Rong, CHENG Hong-Zhong
(Department of Computer Science and Technology, Tongji University, Shanghai 201804, China)
(Key Lab of Services Computing and Embedded Systems of Ministry of Education, Tongji University, Shanghai 201804, China)
Abstract: Task DAG is a mean of depicting dependency among tasks of a program. Apart from dependency between
tasks, amount of computation and traffic between tasks are also reflected on DAG. All these information together
provides a basis for scheduling. There are much research on scheduling base on DAG both domestic and abroad, but
research on constructing task DAG based on analysis of correlation among serial program is rare. This paper focuses on
analysis of data dependency and control dependency and discuss respectively on sequential, branch and loop structure,
propose an algorithm for constructing task DAG of serial programs.
Key words: parallelization of serial programs; directed acyclic graph; data dependency; control dependency; resources
dependency
1 引言 为它们指派处理器或处理结点.
并行计算是加快程序执行速度的有效手段. 然而, 国内外有许多基于任务 DAG 图的调度算法研究,
在现实生活中, 实际问题的解决方案很多都是串行的, 但通过程序相关性分析来构造串行程序任务 DAG 图
如何利用这些已有的串行程序,
原创力文档

文档评论(0)