arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1604.02844cs.DC
收藏

基于英特尔至强融核的广度优先搜索矢量化

Breadth First Search Vectorization on the Intel Xeon Phi

Mireya Paredes, Graham Riley, Mikel Lujan

摘要:

广度优先搜索(BFS)是用于图算法的构建块,并且最近已被用于包括社交网络、图数据库和web搜索的各种应用中的信息的大规模分析。由于其重要性,许多不同的并行编程模型和架构已被利用来优化BFS。然而,由于不规则的内存访问模式和大型图的非结构化性质,其有效的并行化是一个挑战。Xeon Phi是一种大规模并行架构,可用作现成的加速器,其中包括一个功能强大的512位矢量单元,具有优化的分散和收集功能。考虑到其潜在的好处,在此架构上进行图遍历相关的工作是一个活跃的研究领域。我们提出了一组实验中,我们探索的Xeon Phi的架构功能,以及如何最好地利用它们在一个自上而下的BFS算法,但技术可以应用到目前最先进的混合,自上而下加上自下而上,算法。我们专注于开发一个改进的高度向量化的OpenMP并行算法,使用向量的内在函数,并了解使用数据对齐和预取的向量单元。此外,我们调查的超线程和线程亲和力对性能的影响,一个主题,出现在文献中的研究。因此,我们在实验中使用的Xeon Phi版本上实现了我们认为最快的自上而下BFS算法。本文中提供的矢量化BFS自顶向下源代码可以作为免费软件提供。

英文摘要:

Breadth First Search (BFS) is a building block for graph algorithms and has recently been used for large scale analysis of information in a variety of applications including social networks, graph databases and web searching. Due to its importance, a number of different parallel programming models and architectures have been exploited to optimize the BFS. However, due to the irregular memory access patterns and the unstructured nature of the large graphs, its efficient parallelization is a challenge. The Xeon Phi is a massively parallel architecture available as an off-the-shelf accelerator, which includes a powerful 512 bit vector unit with optimized scatter and gather functions. Given its potential benefits, work related to graph traversing on this architecture is an active area of research. We present a set of experiments in which we explore architectural features of the Xeon Phi and how best to exploit them in a top-down BFS algorithm but the techniques can be applied to the current state-of-the-art hybrid, top-down plus bottom-up, algorithms. We focus on the exploitation of the vector unit by developing an improved highly vectorized OpenMP parallel algorithm, using vector intrinsics, and understanding the use of data alignment and prefetching. In addition, we investigate the impact of hyperthreading and thread affinity on performance, a topic that appears under researched in the literature. As a result, we achieve what we believe is the fastest published top-down BFS algorithm on the version of Xeon Phi used in our experiments. The vectorized BFS top-down source code presented in this paper can be available on request as free-to-use software.

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

↑