Efficient compilation of fine-grained SPMD-threaded programs for multicore CPUs

John A. Stratton, Vinod Grover, Jaydeep Marathe, Bastiaan Aarts, Mike Murphy, Ziang Hu, Wen-Mei W Hwu

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

In this paper we describe techniques for compiling fine-grained SPMD-threaded programs, expressed in programming models such as OpenCL or CUDA, to multicore execution platforms. Programs developed for manycore processors typically express finer thread-level parallelism than is appropriate for multicore platforms. We describe options for implementing fine-grained threading in software, and find that reasonable restrictions on the synchronization model enable significant optimizations and performance improvements over a baseline approach. We evaluate these techniques in a production-level compiler and runtime for the CUDA programming model targeting modern CPUs. Applications tested with our tool often showed performance parity with the compiled C version of the application for single-thread performance. With modest coarse-grained multithreading typical of today's CPU architectures, an average of 3.4x speedup on 4 processors was observed across the test applications.

Original languageEnglish (US)
Title of host publicationProceedings of the 2010 CGO - The 8th International Symposium on Code Generation and Optimization
Pages111-119
Number of pages9
DOIs
StatePublished - Jul 1 2010
Event8th International Symposium on Code Generation and Optimization, CGO 2010 - Toronto, ON, Canada
Duration: Apr 24 2010Apr 28 2010

Other

Other8th International Symposium on Code Generation and Optimization, CGO 2010
CountryCanada
CityToronto, ON
Period4/24/104/28/10

    Fingerprint

Keywords

  • CPU
  • CUDA
  • multicore
  • SPMD

ASJC Scopus subject areas

  • Computational Theory and Mathematics
  • Theoretical Computer Science

Cite this

Stratton, J. A., Grover, V., Marathe, J., Aarts, B., Murphy, M., Hu, Z., & Hwu, W-M. W. (2010). Efficient compilation of fine-grained SPMD-threaded programs for multicore CPUs. In Proceedings of the 2010 CGO - The 8th International Symposium on Code Generation and Optimization (pp. 111-119) https://doi.org/10.1145/1772954.1772971