CUDA和OpenCL的编程:使用现代C++库的案例研究
Programming CUDA and OpenCL: A Case Study Using Modern C++ Libraries
摘要:
我们提出了几个现代的C++库提供高层次的接口编程多核和众核架构上的CUDA或OpenCL的比较。比较的重点是解决常微分方程,是基于odeint,一个框架的解决方案系统的常微分方程。Odeint以非常灵活的方式设计,可以很容易地适应使用CUDA或OpenCL技术的Thrust,MTL4,VexCL或ViennaCL等库的有效使用。我们发现CUDA和OpenCL同样适用于大规模的问题,而OpenCL对于较小的问题具有更高的开销。此外,我们表明,现代的高级库允许有效地使用多核GPU或多核CPU的计算资源,而无需太多的底层技术的知识。
英文摘要:
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 and is based on odeint, a framework for the solution of systems of ordinary differential equations. Odeint is designed in a very flexible way and may be easily adapted for effective use of libraries such as Thrust, 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 to effectively use the computational resources of many-core GPUs or multi-core CPUs without much knowledge of the underlying technologies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。