Enabling an OpenCL Compiler for Embedded Multicore DSP Systems
Authors:
- Jia-Jhe LiJLJia-Jhe Li
- Chi-Bang KuanCKChi-Bang Kuan
- Tung-Yu WuTWTung-Yu Wu
- Jenq Kuen LeeJLJenq Kuen Lee
- 1 September 2012
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- No. 01903918,p. 545-552
Abstract
OpenCL is an industry's attempt to unify heterogeneous multicore programming. With its programming model defining SPMD kernels, vector types, and address space qualifiers, OpenCL allows programmers to exploit data parallelism with multicore processors and SIMD instructions as well as data locality with memory hierarchy. Recently, OpenCL has gained success on many architectures, including multicore CPUs, GPUs, vector processors, embedded systems with application-specific processors, and even FPGAs. However, how to support OpenCL for embedded multicore DSP systems remains unaddressed. In this paper, we illustrate our OpenCL support for embedded multicore DSP systems. Our target platform consists of one MPU and a DSP subsystem with multiple DSPs. The DSPs we address are VLIW processors with clustered functional units and distributed register files. To generate efficient code for such DSPs, compilers are required to consider irregular register file access in many optimization phases. To utilize the DSPs with distributed register files, we propose a cluster-aware work-item dispatching scheme to vectorize OpenCL kernels and assign independent workload to clusters of a DSP. In addition, we also incorporate several optimizations to enable efficient DSP code generation. In our experiments, we employ a set of OpenCL benchmark programs to evaluate the effectiveness of our OpenCL support. The experiments are conducted on a DSP cycle-accurate simulator and a multicore evaluation board. We report average 29% performance improvement with our vectorization scheme and a near 2-fold speedup with two DSPs compared with a single-MPU setup.Keywords
This publication has 11 references indexed in Scilit:
- Compiler supports for VLIW DSP processors with SIMD intrinsicsConcurrency and Computation: Practice and Experience, 2011
- Divergence Analysis and Optimizations2011
- Whole-function vectorization2011
- An OpenCL framework for heterogeneous multicores with local memory2010
- Parallel Architecture Core (PAC)—the First Multicore Application Processor SoC in Taiwan Part I: Hardware Architecture & Software Development ToolsJournal of Signal Processing Systems, 2010
- LC‐GRFA: global register file assignment with local consciousness for VLIW DSP processors with non‐uniform register filesConcurrency and Computation: Practice and Experience, 2008
- MCUDA: An Efficient Implementation of CUDA Kernels for Multi-core CPUs2008
- Introducing Control Flow into Vectorized Code2007
- PALF: compiler supports for irregular register files in clustered VLIW DSP processorsConcurrency and Computation: Practice and Experience, 2007
- Reaching fast code faster2006