cuTT:一个适用于CUDA兼容GPU的高性能张量转置库
cuTT: A High-Performance Tensor Transpose Library for CUDA Compatible GPUs
摘要:
我们介绍CUDA张量转置(cuTT)库,该库可为采用Kepler及以上架构的NVIDIA GPU实现高性能张量转置。cuTT通过(a)利用两个GPU优化的转置算法(均使用共享内存缓冲区以减少全局内存访问分散)和(b)使用线程并行算法计算张量元素的内存位置来实现高性能。我们评估了各种基准与张量秩从2到12的性能,并表明,cutt的性能是独立的张量秩,它的表现并不比基于代码生成的方法差。我们开发了一个启发式方案,通过实现一个分析GPU性能模型,可以在运行时使用,而不需要性能测量或分析,选择张量转置算法的最佳参数。最后,通过将cuTT集成到张量代数库TAL-SH中,我们显着降低了张量收缩中的张量转置开销,实现了算术密集型张量收缩的低至1%的开销。
英文摘要:
We introduce the CUDA Tensor Transpose (cuTT) library that implements high-performance tensor transposes for NVIDIA GPUs with Kepler and above architectures. cuTT achieves high performance by (a) utilizing two GPU-optimized transpose algorithms that both use a shared memory buffer in order to reduce global memory access scatter, and by (b) computing memory positions of tensor elements using a thread-parallel algorithm. We evaluate the performance of cuTT on a variety of benchmarks with tensor ranks ranging from 2 to 12 and show that cuTT performance is independent of the tensor rank and that it performs no worse than an approach based on code generation. We develop a heuristic scheme for choosing the optimal parameters for tensor transpose algorithms by implementing an analytical GPU performance model that can be used at runtime without need for performance measurements or profiling. Finally, by integrating cuTT into the tensor algebra library TAL-SH, we significantly reduce the tensor transpose overhead in tensor contractions, achieving as low as just one percent overhead for arithmetically intensive tensor contractions.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。