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

在CUDA中对线程发散成本进行基准测试

Benchmarking the cost of thread divergence in CUDA

Piotr Bialas, Adam Strzelecki

摘要:

所有现代处理器都包含一组向量指令。虽然这极大地提高了性能,但它需要一个可以利用这些指令的矢量化代码。由于理想的向量化在实践中难以实现,因此必须决定何时可以将不同的指令应用于向量操作数的不同元素。这在隐式矢量化中尤其重要,例如在NVIDIA CUDA单指令多线程(SIMT)模型中,矢量化细节对程序员隐藏。为了评估不完全矢量化代码所产生的成本,我们开发了一个微基准测试,该测试可以测量不同架构上CUDA线程发散模型的特性,重点是循环性能。

英文摘要:

All modern processors include a set of vector instructions. While this gives a tremendous boost to the performance, it requires a vectorized code that can take advantage of such instructions. As an ideal vectorization is hard to achieve in practice, one has to decide when different instructions may be applied to different elements of the vector operand. This is especially important in implicit vectorization as in NVIDIA CUDA Single Instruction Multiple Threads (SIMT) model, where the vectorization details are hidden from the programmer. In order to assess the costs incurred by incompletely vectorized code, we have developed a micro-benchmark that measures the characteristics of the CUDA thread divergence model on different architectures focusing on the loops performance.

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

↑