基于分段常数不变量的相似矩阵大规模并行计算
Massively Parallel Computation of Similarity Matrices from Piecewise Constant Invariants
AI总结:
本文提出面向分段常数函数的线性时间、无分配计算框架,支持相似矩阵等统计计算,并通过 CPU/GPU 并行与向量化实现,在 8 GPU 上完成 50 万个 PCF 的距离矩阵压力测试。
摘要:
我们提出了一个用于分段常数函数(PCF)的计算框架,并将其用于统计学中有用的几类计算,例如平均值、相似矩阵等。我们给出了一种线性时间、无内存分配的算法,可在机器精度下处理成对的 PCF。由此,我们推导出用于计算多个 PCF 归约的算法。这些算法以高度可扩展的方式实现,可在 CPU 上并行执行,在某些情况下还可在(多)GPU 上并行执行,并以 Python 软件包形式提供。此外,我们还支持 PCF 的多维数组以及对其进行向量化操作。作为压力测试,我们使用 8 个 GPU 从 500,000 个 PCF 计算了一个距离矩阵。
英文摘要:
We present a computational framework for piecewise constant functions (PCFs) and use this for several types of computations that are useful in statistics, e.g., averages, similarity matrices, and so on. We give a linear-time, allocation-free algorithm for working with pairs of PCFs at machine precision. From this, we derive algorithms for computing reductions of several PCFs. The algorithms have been implemented in a highly scalable fashion for parallel execution on CPU and, in some cases, (multi-)GPU, and are provided in a \proglang{Python} package. In addition, we provide support for multidimensional arrays of PCFs and vectorized operations on these. As a stress test, we have computed a distance matrix from 500,000 PCFs using 8 GPUs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。