针对Julia程序运行的时限约束,提出一种基于有色Petri网的程序运行性能自适应模拟方法。面向特定领域构建适应底层计算资源特点的工具库,抽取针对Julia语言的计算原语;程序员通过Julia语言实现原语,动态选取领域工具,适应运行时限约束。结合图像对象识别案例,构建Colored Petri Net模型,借助CPN Tools工具模拟运行,自动优化备选方案。模拟实验表明,基于工具库的性能标定,CPN模拟得到的工具库映射方案接近最优。
The parallel program developing is difficult on heterogeneous computing platform . Cloud programming in Julia dynamic language is a reasonable model .For time‐constrained cases of the Julia program ,a performance self‐adaptive simulation method based on the Colored Petri Net is proposed in this paper .Oriented to specific field ,such as the case of image object recognition ,we constructed a tool‐library adapting to the characteristics of the underlying computing resources , and extracted a set of primitives in the Julia language .These primitives are implemented in Julia language ,and they select tools dynamically to adapt the time‐constrained running limitation .Con‐sidering the case of image object recognition ,we constructed Colored Petri Net models ,and simu‐lated this model on CPN tools to observe the auto‐optimizing processes .The simulation experi‐mental results show that the tools mapping scheme produced in CPN simulation is close to the best on the basis of the performance calibration of the tools library .