一种基于静态分析的跨体系结构性能预测的机器学习方法
A Static Analysis-based Cross-Architecture Performance Prediction Using Machine Learning
摘要:
将代码从CPU移植到GPU是昂贵且耗时的;除非在开发和优化上投入大量时间,否则先验地看不出可以实现多大的加速或留下多少改进空间。事先知道潜在的加速可能非常有用:它可以节省数百个工程小时,帮助程序员进行优先级排序和算法选择。我们的目标是在监督设置中使用机器学习来解决这个问题,只使用程序的单线程源代码,而不必运行或分析代码。我们提出了一个基于静态分析的跨体系结构性能预测框架(静态XAPP),它只依赖于使用CPU源代码的静态分析收集的程序属性,并预测潜在的加速是高于还是低于给定的阈值。我们提供的初步结果表明,我们可以达到94%的准确率在二进制分类,平均而言,在不同的阈值
英文摘要:
Porting code from CPU to GPU is costly and time-consuming; Unless much time is invested in development and optimization, it is not obvious, a priori, how much speed-up is achievable or how much room is left for improvement. Knowing the potential speed-up a priori can be very useful: It can save hundreds of engineering hours, help programmers with prioritization and algorithm selection. We aim to address this problem using machine learning in a supervised setting, using solely the single-threaded source code of the program, without having to run or profile the code. We propose a static analysis-based cross-architecture performance prediction framework (Static XAPP) which relies solely on program properties collected using static analysis of the CPU source code and predicts whether the potential speed-up is above or below a given threshold. We offer preliminary results that show we can achieve 94% accuracy in binary classification, in average, across different thresholds
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。