Skip to main content
QUICK REVIEW

[Paper Review] Provably Efficient GPU Algorithms.

Nodari Sitchinava, Volker Weichert|arXiv (Cornell University)|Jun 21, 2013
Parallel Computing and Optimization TechniquesComputer Science17 references8 citations
TL;DR

This paper introduces a novel GPU algorithmic model that extends the parallel external memory (PEM) model by integrating shared memory with bank conflict modeling, enabling provably efficient GPU algorithms. It presents a framework for designing bank conflict-free algorithms, exemplified by the first shared memory sorting algorithm without bank conflicts, which significantly improves the performance of GPU mergesort in the THRUST library.

ABSTRACT

In this paper we present an abstract model for algorithm design on GPUs by extending the parallel external memory (PEM) model with computations in internal memory (commonly known as shared memory in GPU literature) defined in the presence of memory banks and bank conflicts. We also present a framework for designing bank conflict free algorithms on GPUs. Using our framework we develop the first shared memory sorting algorithm that incurs no bank conflicts. Our sorting algorithm can be used as a subroutine for comparison-based GPU sorting algorithms to replace current use of sorting networks in shared memory. We show experimentally that such substitution improves the runtime of the mergesort implementation of the THRUST library.

Motivation & Objective

  • To develop an abstract model for GPU algorithm design that incorporates shared memory and bank conflicts.
  • To address the performance bottleneck caused by bank conflicts in GPU shared memory during algorithm execution.
  • To design a systematic framework for creating bank conflict-free GPU algorithms.
  • To construct the first shared memory sorting algorithm free of bank conflicts.
  • To demonstrate the practical performance improvement of replacing sorting networks with the new algorithm in GPU libraries.

Proposed method

  • Extends the parallel external memory (PEM) model to include internal memory computations, specifically modeling shared memory with memory banks and bank conflicts.
  • Introduces a formal abstraction of shared memory access patterns to detect and avoid bank conflicts during algorithm design.
  • Develops a systematic algorithmic framework that ensures all shared memory accesses are bank conflict-free by construction.
  • Designs a novel comparison-based sorting algorithm that operates entirely within shared memory without any bank conflicts.
  • Employs the new sorting algorithm as a subroutine in a GPU mergesort implementation to replace existing sorting networks.
  • Validates performance improvements through experimental evaluation on the THRUST library's mergesort.

Experimental results

Research questions

  • RQ1How can shared memory access patterns on GPUs be formally modeled to account for bank conflicts?
  • RQ2What algorithmic framework enables the design of bank conflict-free GPU algorithms?
  • RQ3Can a comparison-based sorting algorithm be implemented in shared memory without bank conflicts?
  • RQ4What performance gains can be achieved by replacing sorting networks with conflict-free shared memory sorting in GPU libraries?
  • RQ5How does the new algorithm improve the efficiency of GPU-based mergesort in practice?

Key findings

  • The proposed model successfully extends PEM to include shared memory with bank conflict modeling, enabling formal analysis of GPU algorithms.
  • The framework enables the construction of bank conflict-free algorithms by design, eliminating a major source of performance degradation.
  • The first shared memory sorting algorithm without bank conflicts is successfully implemented and proven correct.
  • Experimental results show that replacing sorting networks with the new shared memory sorting algorithm reduces runtime in the THRUST library's mergesort.
  • The performance improvement is measurable and significant, demonstrating the practical impact of eliminating bank conflicts in shared memory operations.

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.