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

分块矩阵-矩阵乘法的高速缓存无关存储和访问算法

Cache oblivious storage and access heuristics for blocked matrix-matrix multiplication

Nicolas Bock, Emanuel H. Rubensson, Paweł Sałek, Anders M. N. Niklasson, Matt Challacombe

摘要:

我们研究了分块矩阵的排序效应--矩阵乘法。我们发现,子矩阵不必连续存储在内存中,以达到接近最佳的性能。相反,它是子矩阵乘法的执行顺序的选择,导致小块大小的加速高达四倍。这与单个矩阵元素的结果形成对比,该结果显示,随着块大小的增加,连续的内存分配很快变得无关紧要。

英文摘要:

We investigate effects of ordering in blocked matrix--matrix multiplication. We find that submatrices do not have to be stored contiguously in memory to achieve near optimal performance. Instead it is the choice of execution order of the submatrix multiplications that leads to a speedup of up to four times for small block sizes. This is in contrast to results for single matrix elements showing that contiguous memory allocation quickly becomes irrelevant as the blocksize increases.

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

↑