arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1810.04758cs.DC
收藏

混合KNN-连接:利用CPU和GPU体系结构特征的并行最近邻查询

Hybrid KNN-Join: Parallel Nearest Neighbor Searches Exploiting CPU and GPU Architectural Features

Michael Gowanlock

摘要:

K最近邻(KNN)连接用于科学领域的数据分析,并且是几种知名算法的构建块。KNN连接查找数据集中所有点的KNN。本文重点介绍了一种低维KNN连接的混合CPU/GPU方法,其中GPU可能不会产生比并行CPU算法更大的性能增益。我们利用一个工作队列,优先计算GPU上的高密度区域和CPU上的低密度区域中的数据点,从而利用每个架构的相对优势。我们的方法HybridKNN-Join有效地增强了最先进的多核CPU算法。我们提出的优化,$(i)$最大限度地提高GPU查询吞吐量分配GPU大批量的工作; $(ii)$增加工作负载粒度,以优化GPU的利用率;和,$(iii)$限制CPU和GPU架构之间的负载不平衡。我们比较HybridKNN-Join到一个GPU和两个并行CPU参考实现。与参考实现相比,我们发现混合算法在较大的工作负载(数据集大小和K)上表现最好。本文所采用的方法显示出在其他混合算法的一般分工的承诺。

英文摘要:

K Nearest Neighbor (KNN) joins are used in scientific domains for data analysis, and are building blocks of several well-known algorithms. KNN-joins find the KNN of all points in a dataset. This paper focuses on a hybrid CPU/GPU approach for low-dimensional KNN-joins, where the GPU may not yield substantial performance gains over parallel CPU algorithms. We utilize a work queue that prioritizes computing data points in high density regions on the GPU, and low density regions on the CPU, thereby taking advantage of each architecture's relative strengths. Our approach, HybridKNN-Join, effectively augments a state-of-the-art multi-core CPU algorithm. We propose optimizations that $(i)$ maximize GPU query throughput by assigning the GPU large batches of work; $(ii)$ increase workload granularity to optimize GPU utilization; and, $(iii)$ limit load imbalance between CPU and GPU architectures. We compare HybridKNN-Join to one GPU and two parallel CPU reference implementations. Compared to the reference implementations, we find that the hybrid algorithm performs best on larger workloads (dataset size and K). The methods employed in this paper show promise for the general division of work in other hybrid algorithms.

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

↑