arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1507.04383cs.DC
收藏

在英特尔至强融核上扩展蒙特卡罗树搜索

Scaling Monte Carlo Tree Search on Intel Xeon Phi

S. Ali Mirsoleimani, Aske Plaat, Jaap van den Herik, Jos Vermaseren

摘要:

许多算法已在英特尔至强融核协处理器上成功并行化,尤其是那些具有规则、平衡且可预测的数据访问模式和指令流的算法。不规则和不平衡的算法很难有效地并行化。例如,它们存在于诸如蒙特卡罗树搜索(MCTS)的人工智能搜索算法中。在本文中,我们研究MCTS的缩放行为,在一个高度优化的现实世界的应用程序,在真正的硬件。英特尔至强融核技术支持多达61个内核和244个硬件线程的共享内存扩展研究。我们比较工作窃取(Cilk Plus和TBB)和工作共享(FIFO调度)的方法。有趣的是,我们发现带有工作共享FIFO队列的简单线程池显示出最佳性能。这种高性能的一个关键因素是控制晶粒尺寸,我们称之为晶粒尺寸控制并行MCTS的方法。我们随后与Xeon CPU的比较显示了不同线程库之间性能上更容易理解的差异。据我们所知,我们使用实际应用程序在61核英特尔至强融核上实现了最快的并行MCTS实现(相对于顺序运行47)。

英文摘要:

Many algorithms have been parallelized successfully on the Intel Xeon Phi coprocessor, especially those with regular, balanced, and predictable data access patterns and instruction flows. Irregular and unbalanced algorithms are harder to parallelize efficiently. They are, for instance, present in artificial intelligence search algorithms such as Monte Carlo Tree Search (MCTS). In this paper we study the scaling behavior of MCTS, on a highly optimized real-world application, on real hardware. The Intel Xeon Phi allows shared memory scaling studies up to 61 cores and 244 hardware threads. We compare work-stealing (Cilk Plus and TBB) and work-sharing (FIFO scheduling) approaches. Interestingly, we find that a straightforward thread pool with a work-sharing FIFO queue shows the best performance. A crucial element for this high performance is the controlling of the grain size, an approach that we call Grain Size Controlled Parallel MCTS. Our subsequent comparing with the Xeon CPUs shows an even more comprehensible distinction in performance between different threading libraries. We achieve, to the best of our knowledge, the fastest implementation of a parallel MCTS on the 61 core Intel Xeon Phi using a real application (47 relative to a sequential run).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑