Title :
Lost in Translation: Challenges in Automating CUDA-to-OpenCL Translation
Author :
Sathre, P. ; Gardner, Michael ; Wu-Chun Feng
Author_Institution :
Dept. of Comput. Sci., Virginia Tech, Blacksburg, VA, USA
Abstract :
The use of accelerators in high-performance computing is increasing. The most commonly used accelerator is the graphics processing unit (GPU) because of its low cost and massively parallel performance. The two most common programming environments for GPU accelerators are CUDA and OpenCL. While CUDA runs natively only on NVIDIA GPUs, OpenCL is an open standard that can run on a variety of hardware processing platforms, including NVIDIA GPUs, AMD GPUs, and Intel or AMD CPUs. Given the abundance of GPU applications written in CUDA, we seek to leverage this investment in CUDA and enable CUDA programs to "run anywhere" via a CUDA-to-OpenCL source-to-source translator. The resultant OpenCL versions permit the GPU-accelerated codes to run on a wider variety of processors that would not otherwise be possible. However, robust source-to-source translation from CUDA to OpenCL faces a myriad of challenges. As such, this paper identifies those challenges and presents a classification of CUDA language idioms that present practical impediments to automatic translation.
Keywords :
computer graphics; graphics processing units; multiprocessing systems; parallel processing; program interpreters; programming environments; AMD CPU; AMD GPU; CUDA language idioms; CUDA programs; CUDA-to-OpenCL source-to-source translator; CUDA-to-OpenCL translation; GPU accelerators; GPU-accelerated codes; Intel CPU; NVIDIA GPU; automatic translation; graphics processing unit; hardware processing platforms; high-performance computing; investment; open standard; parallel performance; programming environments; robust source-to-source translation; Graphics processing unit; Instruction sets; Kernel; Libraries; Performance evaluation; Prototypes; CUDA; GPU; OpenCL; accelerator; source-to-source translation;
Conference_Titel :
Parallel Processing Workshops (ICPPW), 2012 41st International Conference on
Conference_Location :
Pittsburgh, PA
Print_ISBN :
978-1-4673-2509-7
DOI :
10.1109/ICPPW.2012.15