GPU Computing with Python: Performance, Energy Efficiency and Usability
Open Access
- 9 January 2020
- journal article
- research article
- Published by MDPI AG in Computation
- Vol. 8 (1) , 4
Abstract
In this work, we examine the performance, energy efficiency, and usability when using Python for developing high-performance computing codes running on the graphics processing unit (GPU). We investigate the portability of performance and energy efficiency between Compute Unified Device Architecture (CUDA) and Open Compute Language (OpenCL); between GPU generations; and between low-end, mid-range, and high-end GPUs. Our findings showed that the impact of using Python is negligible for our applications, and furthermore, CUDA and OpenCL applications tuned to an equivalent level can in many cases obtain the same computational performance. Our experiments showed that performance in general varies more between different GPUs than between using CUDA and OpenCL. We also show that tuning for performance is a good way of tuning for energy efficiency, but that specific tuning is needed to obtain optimal energy efficiency.Keywords
All Related Versions
Funding Information
- Norges Forskningsråd (250935)
This publication has 30 references indexed in Scilit:
- A Step towards Energy Efficient Computing: Redesigning a Hydrodynamic Application on CPU-GPU2014
- Best Practices for Scientific ComputingPLOS Biology, 2014
- Graphics processing unit (GPU) programming strategies and trends in GPU computingJournal of Parallel and Distributed Computing, 2013
- From CUDA to OpenCL: Towards a performance-portable solution for multi-platform GPU programmingParallel Computing, 2012
- PyCUDA and PyOpenCL: A scripting-based approach to GPU run-time code generationParallel Computing, 2012
- Efficient shallow water simulations on GPUs: Implementation, visualization, verification, and validationComputers & Fluids, 2012
- Simulation of one-layer shallow water systems on multicore and CUDA architecturesThe Journal of Supercomputing, 2010
- State-of-the-art in Heterogeneous ComputingScientific Programming, 2010
- How to Solve Systems of Conservation Laws Numerically Using the Graphics Processor as a High-Performance Computational Engine2007
- A Survey of General‐Purpose Computation on Graphics HardwareComputer Graphics Forum, 2007