Using q-learning to select the best among functionally equivalent implementations
Using q-learning to select the best among functionally equivalent implementations
复制标题
使用 q-learning 在功能等效的实现中选择最佳的
DOI:
10.1145/3520306.3534503
复制
发表时间:
2022
期刊:
影响因子:
--
通讯作者:
Veras, Richard M.
中科院分区:
文献类型:
--
作者:
Oever, Meggie van;Grimley, Lauren E.;Veras, Richard M.
High performance code generation for computationally intensive kernels is a persistent challenge for developers. Given a target architecture and a specific operation, the developer must tune that operation to the lowest-level details of the architecture. This problem is exacerbated by the fact that different architectural targets necessitate different implementations, and even the slightest adjustment to the operation may require large changes in the implementation in order to achieve performance. For performance critical applications this generation is typically performed by hand. However, this level of programming is difficult in terms of the domain knowledge required, and yields coded implementations that increase that challenge of reasoning about the correctness of the problem. Automatic code generation would address these issues. At the very least, by automating the application of the various code transformations needed for performance, this should reduce the issue of correctness, as long as these transformations only lead to correct implementations in the search space. In this paper, we look at a subset of correct implementations of an operation, all valid static schedules of instructions of one particular mix of instructions. We then explore the use of Reinforcement Learning in order to search for the optimal implementation in this subset for the target operation. This work is the first step in automating the exploration of correct implementations using Reinforcement Learning for automatic code generation.
DOI:
--
发表时间:
2005
期刊:
TOMS
影响因子:
--
作者:
P. Bientinesi;John A. Gunnels;Margaret E. Myers;E. Quintana;R. Geijn
通讯作者:
R. Geijn
DOI:
--
发表时间:
2018
期刊:
FHPC@ICFP
影响因子:
--
作者:
V. Zaliva;F. Franchetti
通讯作者:
F. Franchetti
DOI:
10.1145/2755561
发表时间:
2016
期刊:
ACM Transactions on Mathematical Software (TOMS)
影响因子:
--
作者:
F. V. Zee;T. Smith;Bryan Marker;Tze Meng Low;R. V. D. Geijn;Francisco D. Igual;M. Smelyanskiy;Xianyi Zhang;M. Kistler;V. Austel;John A. Gunnels;Lee Killough
通讯作者:
Lee Killough