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

用蝶形部分和优化GPU存贮器存取以绘制离散分布

Using Butterfly-Patterned Partial Sums to Optimize GPU Memory Accesses for Drawing from Discrete Distributions

Guy L. Steele, Jean-Baptiste Tristan

摘要:

我们描述了一种从离散分布中提取值的技术,例如从混合模型的随机变量中采样,避免计算相对概率的部分和的完整表。交替(“蝴蝶模式”)形式的表计算速度更快,可以更好地利用合并的内存访问。从这个表中,完整的部分和是在二分搜索过程中动态计算的。使用NVIDIA Titan Black GPU进行的测量表明,对于足够大数量的集群或主题(K> 200),仅此技术就可以使已经针对GPU执行进行了高度调整的潜在Dirichlet分配(LDA)应用程序的速度增加一倍以上。

英文摘要:

We describe a technique for drawing values from discrete distributions, such as sampling from the random variables of a mixture model, that avoids computing a complete table of partial sums of the relative probabilities. A table of alternate ("butterfly-patterned") form is faster to compute, making better use of coalesced memory accesses. From this table, complete partial sums are computed on the fly during a binary search. Measurements using an NVIDIA Titan Black GPU show that for a sufficiently large number of clusters or topics (K > 200), this technique alone more than doubles the speed of a latent Dirichlet allocation (LDA) application already highly tuned for GPU execution.

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

↑