Exploiting half precision arithmetic in Nvidia GPUs
Nhut-Minh Ho, Weng‐Fai Wong · IEEE High Performance Extreme Computing Conference · 2017
With the growing importance of deep learning and energy-saving approximate computing, half precision floating point arithmetic (FP16) is fast gaining popularity. Nvidia's recent Pascal architecture was the first GPU that offered FP16 support. However, when actual products were shipped, programmers soon realized that a naïve replacement of single precision (FP32) code with half precision led to disappointing performance results, even if they are willing to tolerate the increase in error precision reduction brings. In this paper, we developed an automated conversion framework to help users migrate their CUDA code to better exploit Pascal's half precision capability. Using our tools and techniques, we successfully convert many benchmarks from single precision arithmetic to half precision equivalent, and achieved significant speedup improvement in many cases. In the best case, a 3× speedup over the FP32 version was achieved. We shall also discuss some new issues and opportunities that the Pascal GPUs brought.
Cited by 67 works. doi:10.1109/hpec.2017.8091072
Authors
References
- Rodinia: A benchmark suite for heterogeneous computing
- Scalable parallel programming with CUDA
- Scalable Parallel Programming with CUDA
- Demystifying GPU microarchitecture through microbenchmarking
- Vectorization for SIMD architectures with alignment constraints
- A High-Performance Area-Efficient Multifunction Interpolator
- Polyhedral parallel code generation for CUDA
- Automatic C-to-CUDA Code Generation for Affine Programs
- A Vectorizing Compiler for Multimedia Extensions
- Outer-loop vectorization