Generating GPU Code from a High-Level Representation for Image Processing Kernels
Generating GPU Code from a High-Level Representation for Image Processing Kernels
复制标题
DOI:
10.1007/978-3-642-29737-3_31
复制
发表时间:
2011-08
期刊:
影响因子:
--
通讯作者:
Richard Membarth;Anton Lokhmotov;J. Teich
中科院分区:
文献类型:
--
作者:
Richard Membarth;Anton Lokhmotov;J. Teich
We present a framework for representing image processing kernels based on decoupled access/execute metadata, which allow the programmer to specify both execution constraints and memory access pattern of a kernel. The framework performs source-to-source translation of kernels expressed in high-level framework-specific C++ classes into low-level CUDA or OpenCL code with effective device-dependent optimizations such as global memory padding for memory coalescing and optimal memory bandwidth utilization. We evaluate the framework on several image filters, comparing generated code against highly-optimized CPU and GPU versions in the popular OpenCV library.