Workload Partitioning Algorithm Based on Performance Curve of GPU in Heterogeneous Platforms

Hongyu Yang, Hui Chen, Chengming Li, Qingshan Jiang, Xueyuan Cai2018

Abstract

With the development of GPU's general computing power, hybrid systems composed of multi-core CPU and GPU are becoming more and more popular in data parallel applications. Because the performance of GPU is related to the magnitude of the load received, effective load allocation methods are very important for improving the performance of data parallel applications. The existing static load distribution methods fail to use the characteristics effectively—GPU performance changed with the load, causing the load unbalanced. Dynamic load distribution methods easily reduce the performance of the system due to the excessive synchronization and data transmission operation. In this paper, we propose a new workload partitioning algorithm, which takes advantage of the characteristics of GPU performance varying with the workload in off-line analysis stage, and uses the successive decreasing method to determine the optimal load allocation ratio between multi-core CPU and GPU. The effectiveness of the load allocation algorithm is verified on the remote sensing data set based on the median filtering algorithm.

Introduction

In modern computing, heterogeneous platforms combining multi-core CPUs with powerful GPUs are standard for data-parallel tasks. To maximize performance, workloads must be split between these processors. However, achieving optimal load balancing is difficult. Static partitioning often fails because it assumes constant GPU performance, ignoring the "warm-up" phase where efficiency increases with load. Conversely, dynamic partitioning introduces significant synchronization overhead. This paper addresses these issues by proposing an offline analysis method that accounts for non-linear GPU performance curves.

Methodology

GPU Performance Characterization

The core premise of this research is that GPU performance is not linear. As the workload increases, the GPU becomes more efficient until it reaches a plateau. The authors define $\alpha$ as the speedup of a GPU compared to a single CPU core for a given data volume, and $\alpha_{cg}$ as the speedup of the combined CPU+GPU system. Understanding this curve is essential for avoiding the pitfalls of linear models that oversimplify processor behavior.

Speedup Ratio vs. Workload Percentage

Successive Decreasing Method

To find the optimal partitioning ratio without exhaustive searching, the authors introduce an adjustment factor, $\beta$. The algorithm starts with a high $\beta$ (0.9) and iteratively decreases it by 0.1. The goal is to maximize the difference $(\alpha_{cg} - \alpha)$, which indicates the most efficient load balance point. By treating multiple CPU cores as a single collective processing unit, the algorithm simplifies partitioning logic while maintaining high efficiency.

Flowchart of the Successive Decreasing Method

Experimental Evaluation

The algorithm was verified using remote sensing image data (16-bit color TIFF files) from the Landsat8 OLI-TIRS satellite. The benchmark task was the Median Filtering algorithm, a common image processing technique used to remove noise. The researchers compared their method against the Qilin algorithm, a well-known baseline that utilizes a linear performance model.

Key Results

  • Superior Speedup: The hybrid approach consistently outperformed GPU-only processing across configurations with 1 to 4 CPU cores.
  • Baseline Comparison: The proposed algorithm achieved higher speedup ratios than the Qilin algorithm by accurately modeling the non-linear GPU performance curve.
  • Efficiency: The "successive decreasing" approach reaches the optimal $\beta$ value in very few iterations, making the offline pre-computation phase computationally practical for real-world applications.

Conclusion

By acknowledging the non-linear nature of GPU performance, this workload partitioning algorithm provides a more precise and efficient way to balance loads in heterogeneous systems. While currently demonstrated on median filtering, future work could extend this curve-based logic to other data-parallel tasks and explore adaptive real-time implementations to handle dynamic workload characteristics.

Summary updated

BibTeX
@misc{yang2018workload,
  author = {Hongyu Yang and Hui Chen and Chengming Li and Qingshan Jiang and Xueyuan Cai},
  title = {{Workload Partitioning Algorithm Based on Performance Curve of GPU in Heterogeneous Platforms}},
  year = {2018},
  doi = {10.2991/acaai-18.2018.45},
}
Figure