Skip to main content
QUICK REVIEW

[Paper Review] A Many-core Machine Model for Designing Algorithms with Minimum Parallelism Overheads

Sardar Anisul Haque, Marc Moreno Maza|arXiv (Cornell University)|Feb 3, 2014
Parallel Computing and Optimization TechniquesComputer Science5 references8 citations
TL;DR

This paper proposes a many-core machine model (MMM) that integrates fork-join and SIMD parallelism to minimize parallelism overheads in GPU programs. By introducing a parallelism overhead measure and extending the Graham-Brent theorem with work, span, and overhead, the model enables precise runtime estimation and parameter optimization, validated through four scientific computing algorithms with experimental results confirming theoretical predictions.

ABSTRACT

We present a model of multithreaded computation, combining fork-join and single-instruction-multiple-data parallelisms, with an emphasis on estimating parallelism overheads of programs written for modern many-core architectures. We establish a Graham-Brent theorem for this model so as to estimate execution time of programs running on a given number of streaming multiprocessors. We evaluate the benefits of our model with four fundamental algorithms from scientific computing. In each case, our model is used to minimize parallelism overheads by determining an appropriate value range for a given program parameter; moreover experimentation confirms the model's prediction.

Motivation & Objective

  • To design a computational model that captures both task-based (fork-join) and data-based (SIMD) parallelism in modern many-core architectures like GPUs.
  • To quantify and minimize parallelism overheads arising from communication and synchronization in GPU programs.
  • To extend the classical Graham-Brent theorem by incorporating work, span, and a new parallelism overhead measure for accurate runtime prediction on P streaming multiprocessors.
  • To guide algorithm design by identifying optimal parameter ranges that minimize overheads while maintaining computational work.
  • To validate the model’s predictive power through empirical evaluation on four fundamental scientific computing algorithms.

Proposed method

  • Propose a two-level DAG model to represent both task-level and data-level parallelism in heterogeneous GPU programs.
  • Introduce a new complexity measure, parallelism overhead, to quantify synchronization and communication costs independent of arithmetic work.
  • Derive a modified Graham-Brent theorem that bounds execution time as $ T_P \leq \frac{W}{P} + S + O $, where $ W $ is work, $ S $ is span, and $ O $ is parallelism overhead.
  • Use Corollary 1 of the extended theorem to compare runtime estimates between naive and optimized algorithm instances.
  • Optimize program parameters (e.g., thread block size, data transfer granularity) by maximizing the ratio $ O_{\text{naive}} / O_{\text{optimized}} $ while keeping work variation minimal.
  • Apply the model to four algorithms—polynomial GCD, polynomial multiplication, radix sort, and Euclidean algorithm—using theoretical analysis and CUDA-based experimentation.

Experimental results

Research questions

  • RQ1How can a computational model effectively combine fork-join and SIMD parallelism to model real GPU execution behavior?
  • RQ2What is the impact of communication and synchronization overheads on GPU algorithm performance, and how can they be quantified?
  • RQ3Can a modified Graham-Brent theorem incorporating parallelism overhead improve runtime prediction accuracy for GPU programs?
  • RQ4What optimal parameter ranges minimize parallelism overheads in GPU-optimized algorithms?
  • RQ5To what extent do theoretical predictions from the model align with empirical execution times in real GPU code?

Key findings

  • For the polynomial GCD algorithm, the model predicted that setting the parameter $ s = 256 $ would yield optimal performance, which was confirmed experimentally.
  • The running time estimate ratio $ R $ for the optimized Euclidean algorithm was greater than 1 when $ Z > 9.6 $, and since $ Z $ was always larger in practice, the optimized version was consistently faster.
  • In polynomial multiplication, the model indicated that the parameter $ s $ should be minimized, and experimentation confirmed that $ s = 4 $ was optimal among values from 2 to 32.
  • The model’s runtime estimates for the Euclidean algorithm closely matched results from the Systolic VLSI Array Model, validating its predictive accuracy.
  • The CUDA implementation of the optimized Euclidean algorithm achieved linear time complexity with respect to polynomial degree, up to degree 10,000, confirming the model’s practical utility.
  • For radix sort, the model’s predicted optimal parameter range aligned with empirical findings from prior work, demonstrating cross-algorithm consistency.

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.