One OpenCL to rule them all?
Authors:
- 1 September 2013
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-6
Abstract
OpenCL is now available on a very large set of processors. This makes this language an attractive layer to address multiple targets with a single code base. The question on how sensitive to the underlying hardware is the OpenCL code in practice remains to be better understood. 1. This paper studies how realistic it is to use a unique OpenCL code for a set of hardware co-processors with different underlying micro-architectures. In this work, we target Intel ® Xeon Phi™, NVIDIA ® K20C and AMD ® 7970™ GPU. All these accelerators provide at least support for OpenCL 1.1 and fit in the same high-end version of accelerator technology. To assess performance, we use OpenACC CAPS compiler to generate OpenCL code and use a moderately complex miniapplication, Hydro. This code uses 22 OpenCL kernels and was tailored to limit data transfers between the host and the accelerator device. To study how stable are the performance, we performed many experiments to determine the best OpenCL code for each hardware platform. This paper shows that, if well chosen, a single version of the code can be executed on multiple platforms without significant performance losses (less than 12%). This study confirms the need for auto-tuning technology to look for performance tradeoffs but also shows that deploying selftuning/adaptive code is not always necessary if the ultimate performance is not the goal.Keywords
This publication has 8 references indexed in Scilit:
- Performance Gaps between OpenMP and OpenCL for Multi-core CPUs2012
- From CUDA to OpenCL: Towards a performance-portable solution for multi-platform GPU programmingParallel Computing, 2012
- Auto-tuning a high-level language targeted to GPU codes2012
- Guest Editor's Introduction: Special Section on Challenges and Solutions in Multicore and Many‐Core ComputingConcurrency and Computation: Practice and Experience, 2011
- Performance characterization of the NAS Parallel Benchmarks in OpenCL2011
- Comparing Hardware Accelerators in Scientific Applications: A Case StudyIEEE Transactions on Parallel and Distributed Systems, 2010
- Kinematic dynamos using constrained transport with high order Godunov schemes and adaptive mesh refinementJournal of Computational Physics, 2006
- A high order Godunov scheme with constrained transport and adaptive mesh refinement for astrophysical magnetohydrodynamicsAstronomy & Astrophysics, 2006