High-performance code generation for stencil computations on heterogeneous multi-device architectures
Résumé
Stencil computations are widely used in many scientific domains, and are therefore of particular interest to scientific computing research. Running stencil codes on GPGPUs and multi-devices platforms are theoretically possible for gaining better performance because of their superior floating point performance and memory bandwidth. But these architectures increase the difficulties for developers. In this paper, we propose an tool that generates OpenCL host program for stencil computing on multi-device architecture. The user provides the description of critical parameters in a XML file, then our generator will analyze the description and generate automatically the host program. Due to the data partition and data exchange strategies, the generated host program can be executed on multi-devices without changing any kernel code. The experiment shows that our tool is efficient. It can guarantee the minimum data exchanges and achieve high performance on Multi-device architecture.