Title
OpenCL 2.0 Compiler Adaptation on LLVM for PTX Simulators
Abstract
OpenCL continues to gather momentum on both desktop and mobile devices. The new features of OpenCL 2.0 provides developers better expressive power in programming heterogeneous computing environments. Currently in the experimental simulation environment, gem5-gpu only supports CUDA, but GPGPU-Sim can support OpenCL by compiling OpenCL kernel code to PTX using real GPU driver. However, this driver compilation in GPGPU-Sim only can support up to OpenCL 1.2. To support OpenCL 2.0, it is necessary to extend the compiler to enable the compilation of OpenCL 2.0 kernel code to PTX. In this paper, our experience in enabling the compiler flow is reported. In OpenCL 2.0, it provides new features such as dynamic parallelism, work-group built-in functions, extend atomic builtin functions, and so on. The proposed compiler that is modified from Low Level Virtual Machine (LLVM) extends such features for enhancing the emulator to support OpenCL 2.0. After the compiler is modified, it can support dynamic parallelism, workgroup built-in functions and extend atomic built-in functions. Using existing dynamic parallelism APIs in CUDA to implement OpenCL 2.0 enqueue kernel and revise compilation scheme in clang. Furthermore, the proposed compiler also creates local buffers for each work group to use for work-group builtin functions, and adds atomic built-in functions with memory order and memory scope for OpenCL 2.0 in NVPTX. From benchmarks, the proposed compiler can support the claim target.
Year
DOI
Venue
2017
10.1109/ICPPW.2017.21
2017 46th International Conference on Parallel Processing Workshops (ICPPW)
Keywords
Field
DocType
LLVM,OpenCL,PTX,Libclc,GPGPU-Sim
Kernel (linear algebra),Digital signal processing,Virtual machine,Programming language,CUDA,Instruction set,Computer science,Parallel computing,Symmetric multiprocessor system,Compiler,Mobile device,Distributed computing
Conference
ISSN
ISBN
Citations 
1530-2016
978-1-5386-1045-9
2
PageRank 
References 
Authors
0.46
2
6
Name
Order
Citations
PageRank
Chun-Chieh Yang152.62
Shao-Chung Wang2134.31
Min-Yih Hsu330.82
Yuan-Ming Chang431.88
Yuan-Shin Hwang540340.55
Jenq-Kuen Lee612017.98