Whole-function vectorization
Authors:
- 1 April 2011
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 141-150
Abstract
Data-parallel programming languages are an important component in today's parallel computing landscape. Among those are domain-specific languages like shading languages in graphics (HLSL, GLSL, RenderMan, etc.) and “general-purpose” languages like CUDA or OpenCL. Current implementations of those languages on CPUs solely rely on multi-threading to implement parallelism and ignore the additional intra-core parallelism provided by the SIMD instruction set of those processors (like Intel's SSE and the upcoming AVX or Larrabee instruction sets). In this paper, we discuss several aspects of implementing dataparallel languages on machines with SIMD instruction sets. Our main contribution is a language- and platform-independent code transformation that performs whole-function vectorization on low-level intermediate code given by a control flow graph in SSA form. We evaluate our technique in two scenarios: First, incorporated in a compiler for a domain-specific language used in realtime ray tracing. Second, in a stand-alone OpenCL driver. We observe average speedup factors of 3.9 for the ray tracer and factors between 0.6 and 5.2 for different OpenCL kernels.Keywords
This publication has 19 references indexed in Scilit:
- RTfact: Generic concepts for flexible and high performance ray tracing2008
- Multi-platform Auto-vectorization2006
- LLVM: A compilation framework for lifelong program analysis & transformation2004
- A Vectorizing Compiler for Multimedia ExtensionsInternational Journal of Parallel Programming, 2000
- Compilation Techniques for Multimedia ProcessorsInternational Journal of Parallel Programming, 2000
- Exploiting superword level parallelism with multimedia instruction setsACM SIGPLAN Notices, 2000
- Scheduling and Automatic Parallelization2000
- RenderMan: pursuing the future of graphicsIEEE Computer Graphics and Applications, 1990
- Detecting equality of variables in programs1988
- A vectorizing Fortran compilerIBM Journal of Research and Development, 1986