LightScan: Faster Scan Primitive on CUDA Compatible Manycore Processors
School of Computational Science & Engineering, Georgia Institute of Technology, Atlanta, USA
arXiv:1604.04815 [cs.DC], (17 Apr 2016)
@article{liu2016lightscan,
title={LightScan: Faster Scan Primitive on CUDA Compatible Manycore Processors},
author={Liu, Yongchao and Aluru, Srinivas},
year={2016},
month={apr},
archivePrefix={"arXiv"},
primaryClass={cs.DC}
}
Scan (or prefix sum) is a fundamental and widely used primitive in parallel computing. In this paper, we present LightScan, a faster parallel scan primitive for CUDA-enabled GPUs, which investigates a hybrid model combining intra-block computation and inter-block communication to perform a scan. Our algorithm employs warp shuffle functions to implement fast intra-block computation and takes advantage of globally coherent L2 cache and the associated parallel thread execution (PTX) assembly instructions to realize lightweight inter-block communication. Performance evaluation using a single Tesla K40c GPU shows that LightScan outperforms existing GPU algorithms and implementations, and yields a speedup of up to 2.1, 2.4, 1.5 and 1.2 over the leading CUDPP, Thrust, ModernGPU and CUB implementations running on the same GPU, respectively. Furthermore, LightScan runs up to 8.9 and 257.3 times faster than Intel TBB running on 16 CPU cores and an Intel Xeon Phi 5110P coprocessor, respectively. Source code of LightScan is available.
April 19, 2016 by hgpu