实施
正确性
计算机科学
强化学习
编码(集合论)
代码生成
领域(数学分析)
程序设计语言
计算机工程
人工智能
集合(抽象数据类型)
钥匙(锁)
操作系统
数学
数学分析
作者
Meggie van den Oever,Lauren Grimley,Richard Veras
标识
DOI:10.1145/3520306.3534503
摘要
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.
科研通智能强力驱动
Strongly Powered by AbleSci AI