Building a Basic Block Instruction Scheduler with Reinforcement Learning and Rollouts
作者:Amy McGovern, Eliot Moss, Andrew G. Barto
摘要
The execution order of a block of computer instructions on a pipelined machine can make a difference in running time by a factor of two or more. Compilers use heuristic schedulers appropriate to each specific architecture implementation to achieve the best possible program speed. However, these heuristic schedulers are time-consuming and expensive to build. We present empirical results using both rollouts and reinforcement learning to construct heuristics for scheduling basic blocks. In simulation, the rollout scheduler outperformed a commercial scheduler on all benchmarks tested, and the reinforcement learning scheduler outperformed the commercial scheduler on several benchmarks and performed well on the others. The combined reinforcement learning and rollout approach was also very successful. We present results of running the schedules on Compaq Alpha machines and show that the results from the simulator correspond well to the actual run-time results.
论文关键词:reinforcement learning, instruction scheduling, rollouts
论文评审过程:
论文官网地址:https://doi.org/10.1023/A:1017976211990