Programming CUDA and OpenCL: A Case Study Using Modern C++ Libraries

Denis Demidov,Karsten Ahnert,Karl Rupp,Peter Gottschling
DOI: https://doi.org/10.1137/120903683
IF: 2.968
2013-01-01
SIAM Journal on Scientific Computing
Abstract:We present a comparison of several modern C++ libraries providing high-level interfaces for programming multi- and many-core architectures on top of CUDA or OpenCL. The comparison focuses on the solution of ordinary differential equations (ODEs) and is based on odeint, a framework for the solution of systems of ODEs. Odeint is designed in a very flexible way and may be easily adapted for effective use of libraries such as MTL4, VexCL, or ViennaCL, using CUDA or OpenCL technologies. We found that CUDA and OpenCL work equally well for problems of large sizes, while OpenCL has higher overhead for smaller problems. Furthermore, we show that modern high-level libraries allow us to effectively use the computational resources of many-core GPUs or multicore CPUs without much knowledge of the underlying technologies.
mathematics, applied
What problem does this paper attempt to address?