Skip to main content
QUICK REVIEW

[Paper Review] Benchmarking OpenCL, OpenACC, OpenMP, and CUDA: programming productivity, performance, and energy consumption

Suejb Memeti, Lu Li|arXiv (Cornell University)|Apr 18, 2017
Parallel Computing and Optimization TechniquesComputer Science7 citations
TL;DR

This paper benchmarks OpenMP, OpenACC, OpenCL, and CUDA across programming productivity, performance, and energy efficiency using SPEC Accel and Rodinia benchmark suites on Intel Xeon Phi and GPU systems. It finds that OpenMP requires the least code modification (4.86% of lines), while OpenCL demands significantly more effort than OpenACC and CUDA, yet delivers superior performance on GPU-accelerated systems like Ida.

ABSTRACT

Many modern parallel computing systems are heterogeneous at their node level. Such nodes may comprise general purpose CPUs and accelerators (such as, GPU, or Intel Xeon Phi) that provide high performance with suitable energy-consumption characteristics. However, exploiting the available performance of heterogeneous architectures may be challenging. There are various parallel programming frameworks (such as, OpenMP, OpenCL, OpenACC, CUDA) and selecting the one that is suitable for a target context is not straightforward. In this paper, we study empirically the characteristics of OpenMP, OpenACC, OpenCL, and CUDA with respect to programming productivity, performance, and energy. To evaluate the programming productivity we use our homegrown tool CodeStat, which enables us to determine the percentage of code lines that was required to parallelize the code using a specific framework. We use our tool x-MeterPU to evaluate the energy consumption and the performance. Experiments are conducted using the industry-standard SPEC benchmark suite and the Rodinia benchmark suite for accelerated computing on heterogeneous systems that combine Intel Xeon E5 Processors with a GPU accelerator or an Intel Xeon Phi co-processor.

Motivation & Objective

  • To evaluate and compare the programming productivity, performance, and energy consumption of four major heterogeneous programming frameworks: OpenMP, OpenACC, OpenCL, and CUDA.
  • To address the challenge of selecting the most suitable framework for a given target system and application context.
  • To quantify the human effort required to parallelize code using each framework, particularly in relation to code line modifications.
  • To measure and compare actual performance and energy consumption on real heterogeneous systems with GPUs and Intel Xeon Phi accelerators.
  • To provide empirical data for guiding framework selection based on productivity, performance, and energy efficiency trade-offs.

Proposed method

  • Employed a custom tool, CodeStat, to measure the percentage of code lines modified for parallelization, serving as a proxy for programming productivity.
  • Developed x-MeterPU, an extension of MeterPU, to measure both performance and energy consumption on systems with GPU and Intel Xeon Phi accelerators.
  • Conducted experiments on two heterogeneous systems: Ida (with GTX Titan X GPU) and Emil (with two Intel Xeon Phi E5 processors).
  • Used industry-standard benchmark suites: SPEC Accel and Rodinia, covering a range of compute-intensive kernels.
  • Collected execution time and energy consumption data across all frameworks and benchmarks to enable cross-framework comparison.
  • Analyzed results across multiple metrics, including code modification ratio, execution time, and energy efficiency, to derive comparative insights.

Experimental results

Research questions

  • RQ1How does the programming productivity, measured by code modification effort, compare across OpenMP, OpenACC, OpenCL, and CUDA?
  • RQ2What is the performance difference between OpenCL, OpenACC, OpenMP, and CUDA on GPU- and Xeon Phi-accelerated systems?
  • RQ3How does energy consumption vary across the four frameworks when executing the same benchmarks?
  • RQ4To what extent does the human factor influence the code modification ratio in parallel programming tasks?
  • RQ5Which framework offers the best trade-off between productivity, performance, and energy efficiency for heterogeneous computing?

Key findings

  • OpenMP required the least code modification, with only 4.86% of lines needing changes, making it the most productive framework in the study.
  • OpenCL required 9.07% of code lines to be modified, significantly more than OpenACC, indicating higher productivity cost for OpenCL.
  • For the Rodinia benchmark suite, OpenCL required approximately twice the effort to parallelize compared to CUDA.
  • On the GPU-accelerated system Ida, OpenCL outperformed OpenACC in execution time for LBM and MRI-Q kernels, though results were comparable for Stencil.
  • OpenMP, OpenCL, and CUDA exhibited comparable performance and energy consumption on the Ida system, suggesting similar efficiency profiles.
  • The human factor significantly influenced the code modification ratio, indicating variability in developer effort across different frameworks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.