基于指令流水线的CUDA核函数时间预测模型  

Time Prediction Model for CUDA Kernel Function Based on Instruction Pipelin

在线阅读下载全文

作  者:张建定 陈根浪 明宗禹 ZHANG Jianding;CHEN Genlang;MING Zongyu(School of Artificial Intelligence,Zhejiang Sci-Tech University,Hangzhou 310018,China)

机构地区:[1]浙江理工大学人工智能学院,浙江杭州310018

出  处:《软件工程》2024年第10期74-78,共5页Software Engineering

摘  要:对CUDA核函数(CUDA Kernel Function)在静态下的评估预测是任务调度与程序优化的一个关键组成部分。文章通过对CUDA核函数的PTX(Parallel Thread Execution)进行代码分析和特性建模,精心设计了一个时间预测模型。该模型基于指令流水线的原理,可以在不执行程序的情况下,预测核函数在给定硬件环境下的执行时间。实验结果表明,该模型在预测CUDA核函数执行时间上的平均百分比误差为22.87%。这意味着该模型能够相对准确地预测核函数的执行时间,为任务调度系统提供参考,并辅助开发人员对程序进行优化。Static evaluation and prediction of CUDA kernel functions are key components in task scheduling and program optimization.This paper proposes to carefully devise a time prediction model through the analysis of PTX(Parallel Thread Execution)code and feature modeling of CUDA kernel functions.Based on the principles of instruction pipeline,the model can predict the execution time of kernel functions in a given hardware environment without executing the program.Experimental results indicate that the model achieves an average percentage error of 22.87%in predicting the execution time of CUDA kernel functions.This means the model can relatively accurately predict the execution time of kernel functions,providing a reference for task scheduling systems and assisting developers in program optimization.

关 键 词:CUDA 时间预测 静态 PTX 流水线 

分 类 号:TP391[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象