Generating Device-specific GPU Code for Local Operators in Medical Imaging
Richard Membarth, Frank Hannig, Jürgen Teich et al. · Proceedings - IEEE International Parallel and Distributed Processing Symposium · 2012
To cope with the complexity of programming GPU accelerators for medical imaging computations, we developed a framework to describe image processing kernels in a domain-specific language, which is embedded into C++. The description uses decoupled access/execute metadata, which allow the programmer to specify both execution constraints and memory access patterns of kernels. A source-to-source compiler translates this high-level description into low-level CUDA and Open CL code with automatic support for boundary handling and filter masks. Taking the annotated metadata and the characteristics of the parallel GPU execution model into account, two-layered parallel implementations - utilizing SPMD and MPMD parallelism - are generated. An abstract hardware model of graphics card architectures allows to model GPUs of multiple vendors like AMD and NVIDIA, and to generate device-specific code for multiple targets. It is shown that the generated code is faster than manual implementations and those relying on hardware support for boundary handling. Implementations from Rapid Mind, a commercial framework for GPU programming, are outperformed and similar results achieved compared to the GPU backend of the widely used image processing library Open CV.
Cited by 45 works. doi:10.1109/ipdps.2012.59
Authors
References
- Bilateral filtering for gray and color images
- Shader algebra
- Demystifying GPU microarchitecture through microbenchmarking
- CUDA-Lite: Reducing GPU Programming Complexity
- From CUDA to OpenCL: Towards a performance-portable solution for multi-platform GPU programming
- hiCUDA: High-Level GPGPU Programming
- Implementing the PGI Accelerator model
- Program optimization carving for GPU computing
- High-performance SIMT code generation in an active visual effects library
- 1 Intel’s Array Building Blocks: A Retargetable, Dynamic Compiler and Embedded Language