作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2006, Vol. 32 ›› Issue (18): 58-60. doi: 10.3969/j.issn.1000-3428.2006.18.021

• 软件技术与数据库 • 上一篇    下一篇

OpenMP任务调度开销及负载均衡分析

赖建新1,胡长军2,赵宇迪1,王生原1,张素琴1   

  1. (1. 清华大学计算机系,北京100084;2. 北京科技大学信息工程学院,北京100083)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2006-09-20 发布日期:2006-09-20

Analysis of Task Schedule Overhead and Load Balance in OpenMP

LAI Jianxin1, HU Changjun2, ZHAO Yudi1, WANG Shengyuan1, ZHANG Suqin1   

  1. (1. Department of Computer Science and Technology, Tsinghua University, Beijing 100084; 2. Information Engineering School, Beijing University of Science and Technology, Beijing 100083)
  • Received:1900-01-01 Revised:1900-01-01 Online:2006-09-20 Published:2006-09-20

摘要: 任务调度是OpenMP规范的重要内容。在考虑调度开销、负载均衡等多方面因素的基础上,OpenMP规范制定了静态调度、动态调度、指数动态调度和运行时调度等不同策略。详细分析了在单次循环时间相等情况下,不同的OpenMP调度策略对额外开销和负载均衡的影响;提出了选择不同任务调度策略的原则。

关键词: OpenMP, 任务调度, 负载均衡, 调度开销

Abstract: Task schedule is very important in the OpenMP specification. Selecting different scheduling strategies plays a key role on the performance of a parallel program by affecting the load balance and schedule overhead. The OpenMP API specifies four scheduling strategies: static, dynamic, guided and runtime. A quantitative analysis on the load balance and schedule overhead of different schedule strategies is studied under the condition of assuming that executing each iteration spends the same time. Some principles for choosing schedule strategies are also discussed.

Key words: OpenMP, Task schedule, Load balance, Schedule overhead

中图分类号: