Skip to main content
QUICK REVIEW

[Paper Review] A Simple Model for Portable and Fast Prediction of Execution Time and Power Consumption of GPU Kernels

Lorenz Braun, Sotirios Nikas|arXiv (Cornell University)|Jan 20, 2020
Parallel Computing and Optimization TechniquesComputer Science6 citations
TL;DR

This paper proposes a portable, fast, and accurate machine learning model for predicting GPU kernel execution time and power consumption using only hardware-independent features—such as instruction counts and kernel launch configurations—without relying on hardware-specific metrics. Trained via random forests on 189 kernels from major benchmarks, the model achieves median MAPE of 8.86–52.0% for execution time and 1.84–2.94% for power across five diverse GPUs, with single-prediction latency under 109 ms.

ABSTRACT

Characterizing compute kernel execution behavior on GPUs for efficient task scheduling is a non-trivial task. We address this with a simple model enabling portable and fast predictions among different GPUs using only hardware-independent features. This model is built based on random forests using 189 individual compute kernels from benchmarks such as Parboil, Rodinia, Polybench-GPU and SHOC. Evaluation of the model performance using cross-validation yields a median Mean Average Percentage Error (MAPE) of 8.86-52.00% and 1.84-2.94%, for time respectively power prediction across five different GPUs, while latency for a single prediction varies between 15 and 108 milliseconds.

Motivation & Objective

  • To enable portable and fast prediction of GPU kernel performance across different GPU architectures without relying on hardware-specific metrics.
  • To address the lack of generalizable, publicly available performance and power models for GPGPU workloads.
  • To develop a model that uses only static, hardware-independent features such as instruction counts and kernel launch parameters.
  • To support efficient task scheduling, system provisioning, and energy-aware workload placement in heterogeneous computing environments.
  • To improve portability and reusability of performance models across GPUs, especially for consumer-grade and enterprise-grade devices.

Proposed method

  • The model uses random forests to learn the mapping between hardware-independent features and execution time/power consumption.
  • Features include floating-point, integer, and memory operation counts across different address spaces, as well as thread hierarchy and launch configuration parameters.
  • Training data is derived from 189 unique GPU kernels across benchmarks including Parboil, Rodinia, Polybench-GPU, and SHOC.
  • Cross-validation is used to evaluate model generalization across five different GPU architectures: K20, Titan Xp, P100, V100, and GTX1650.
  • The model excludes hardware-dependent features such as cache hit rates, ensuring portability across GPU generations.
  • Prediction latency is measured at 15–108 ms per kernel, enabling real-time or near-real-time use in scheduling systems.

Experimental results

Research questions

  • RQ1Can execution time and power consumption of GPU kernels be accurately predicted using only hardware-independent features?
  • RQ2How well does a single model generalize across diverse GPU architectures without retraining?
  • RQ3What is the impact of kernel execution duration and launch configuration on prediction accuracy?
  • RQ4How does the model perform on consumer-grade GPUs with dynamic frequency scaling compared to enterprise GPUs?
  • RQ5Can the model support practical use cases such as task scheduling and system provisioning in heterogeneous computing environments?

Key findings

  • The model achieves a median Mean Average Percentage Error (MAPE) of 8.86% for execution time prediction on the P100 GPU, with values ranging from 10.89% (V100) to 52.0% (GTX1650).
  • Power consumption is predicted with a median MAPE of 1.84–2.94% across all five GPUs, indicating high accuracy and robustness.
  • The GTX1650, a consumer-grade GPU with dynamic frequency scaling, shows the highest time prediction error (52.0% median MAPE), likely due to limited representation of long-running kernels in training data.
  • The model maintains low power prediction error (1.84–2.94% MAPE) across all GPUs, suggesting strong generalization for power metrics.
  • Single predictions are generated in 15–108 ms, enabling practical deployment in runtime scheduling systems.
  • The model is publicly available and can be retrained for new GPU architectures, supporting portability across CUDA-based devices.

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.