Using q-learning to select the best among functionally equivalent implementations

实施 正确性 计算机科学 强化学习 编码(集合论) 代码生成 领域(数学分析) 程序设计语言 计算机工程 人工智能 集合(抽象数据类型) 钥匙(锁) 操作系统 数学 数学分析
作者
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
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
小马甲应助尹英宇采纳,获得10
刚刚
1秒前
2秒前
努尔完成签到,获得积分10
2秒前
2秒前
领导范儿应助少清纳言采纳,获得10
3秒前
4秒前
qian关注了科研通微信公众号
5秒前
5秒前
努尔发布了新的文献求助10
6秒前
6秒前
lilycat完成签到,获得积分10
6秒前
33333发布了新的文献求助10
6秒前
詹詹完成签到,获得积分10
7秒前
王恩惠完成签到,获得积分20
7秒前
小鹿完成签到,获得积分10
7秒前
7秒前
欢呼凡旋发布了新的文献求助10
8秒前
8秒前
飞天小李警完成签到 ,获得积分10
8秒前
小白发布了新的文献求助10
9秒前
9秒前
9秒前
lbb发布了新的文献求助10
9秒前
美好斓发布了新的文献求助150
10秒前
111发布了新的文献求助10
11秒前
11秒前
冰栗子应助baizi采纳,获得10
12秒前
12秒前
wcwpl完成签到,获得积分10
12秒前
万能图书馆应助傷傷痛辛采纳,获得10
12秒前
尹英宇发布了新的文献求助10
13秒前
优雅沛文完成签到 ,获得积分10
13秒前
那时光阴发布了新的文献求助10
13秒前
王恩惠发布了新的文献求助10
14秒前
14秒前
哇啊啊发布了新的文献求助20
15秒前
youzi关注了科研通微信公众号
16秒前
111完成签到,获得积分20
17秒前
高分求助中
卤化钙钛矿人工突触的研究 1000
Engineering for calcareous sediments : proceedings of the International Conference on Calcareous Sediments, Perth 15-18 March 1988 / edited by R.J. Jewell, D.C. Andrews 1000
Wolffs Headache and Other Head Pain 9th Edition 1000
Continuing Syntax 1000
Signals, Systems, and Signal Processing 510
Cardiac structure and function of elite volleyball players across different playing positions 500
CLSI H26-A2 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 物理 内科学 复合材料 催化作用 物理化学 光电子学 电极 细胞生物学 基因 无机化学
热门帖子
关注 科研通微信公众号,转发送积分 6243035
求助须知:如何正确求助?哪些是违规求助? 8066703
关于积分的说明 16837664
捐赠科研通 5320840
什么是DOI,文献DOI怎么找? 2833248
邀请新用户注册赠送积分活动 1810792
关于科研通互助平台的介绍 1666979