• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2010, Vol. 32 ›› Issue (7): 154-156.doi: 10.3969/j.issn.1007130X.2010.

• 论文 • 上一篇    下一篇

基于修正的PRM网进行并行程序性能预测的方法

张凌晓,张菊艳,刘克成   

  1. (南阳理工学院计算机科学与技术系,河南 南阳 473004)
  • 收稿日期:2009-06-25 修回日期:2009-09-28 出版日期:2010-06-25 发布日期:2010-06-25
  • 通讯作者: 张凌晓 E-mail:nyky@163.com
  • 作者简介:张凌晓(1972),男,河南唐河人,硕士,副教授,研究方向为并行系统与计算机应用技术;张菊艳,硕士,研究方向为电气工程及其自动化;刘克成,教授,研究方向为计算机算法、计算机应用技术。

A Method of Performance Prediction of Parallel Programs Based on the Modified PRMnet

ZHANG Lingxiao,ZHANG Jüyan,LIU Kecheng   

  1. (Department of Computer Science and Technology,Nanyang Institute of Technology,Nanyang 473004,China)
  • Received:2009-06-25 Revised:2009-09-28 Online:2010-06-25 Published:2010-06-25
  • Contact: ZHANG Lingxiao E-mail:nyky@163.com

摘要:

Petri网是使用很广泛的用于复杂系统描述的工具。PRM网是一种特殊的Petri网,主要用于并行程序的性能评价和预测,使用PRM网进行预测,通常使用的是程序模拟的方法。本文首先对PRM网作了简要的介绍并做出适当的修正,然后基于修正后的PRM网提出了一种基于计算的性能预测方法。该方法主要可以分成三个步骤:首先根据P网建立一个状态跃迁列表,然后根据资源映射图建立执行图,最后计算执行图中最长路径的长度。对于不同的资源映射图,只需要重做后两步,就可以预测出其运行时间,相对于模拟来说,这种方法要便捷得多。

关键词: PRM网, 性能预测, 并行程序

Abstract: Petri net is a useful tool for system description in many research areas. PRMnet is a specified Petri net for the performance evaluation and prediction of parallel programs.The commonly used method for prediction with PRMnet is simulation. In this paper we first introduce the PRMnet briefly and then make some modifications.We introduce a method by calculation with the modified PRMnet. There are three phases in this method:first generate a transition list with Pnet;and then generate an execution graph with resource mapping; the length of the longest path of the graph is the total execution time, which can be calculated by some algorithms efficiently. Thus, with different resource mappings, we just need to redo the last two steps, which is much easier than simulation.

Key words: PRMnet;performance prediction;parallel programs