Just-in-Time 自动调优
Just-in-Time autotuning
AI总结:
本文扩展了即时编译基础设施以引入运行时触发的自动调优能力,通过初始迭代优化函数并在后续调用中复用最优解,实验表明该方法能有效优化计算内核且开销可被补偿。
摘要:
性能可移植性是当前架构上的一个主要关注点。实现它的一种方法是使用自动调优。在本文中,我们展示了如何扩展即时编译基础设施,以引入在运行时触发的自动调优能力。当执行一个函数时,最初的迭代会对其进行优化,一旦找到最佳解决方案,就将其用于该函数的后续调用。这种即时自动调优基础设施适用于优化在执行过程中会被以相似参数多次调用的计算内核,当以其他参数调用时会重新优化内核,并且程序员可以获得最佳参数以将其用于其他内核。我们提出了对该方法的实验性性能评估。编译代码会在最初的迭代中引入开销,而这种开销会在后续迭代中得到补偿。我们还确定,所找到的最优解似乎是稳定且准确的。
英文摘要:
Performance portability is a major concern on current architectures. One way to achieve it is by using autotuning. In this paper, we are presenting how we exten ded a just-in-time compilation infrastructure to introduce autotuning capabiliti es triggered at run-time. When a function is executed, the first iterations optimize it, and once the best solution has been found, it is used for subsequent calls to the function. This just-in-time autotuning infrastructure is relevant for optimizing computation kernels that will be called numerous times with similar parameters through the execution, re-optimizes kernels when they are called with other parameters, and the programmer can obtain the optimal parameters to use them for other kernels. We present an experimental performance evaluation of our approach. Compiling the code introduces an overhead on the first iterations, and this overhead is compensated for during subsequent iterations. We also determined that the optimum found seems stable and accurate.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。