Skip to main content
QUICK REVIEW

[Paper Review] Reordering GPU Kernel Launches to Enable Efficient Concurrent Execution

Teng Li, Vikram K. Narayana|arXiv (Cornell University)|Nov 25, 2015
Parallel Computing and Optimization TechniquesComputer Science8 references3 citations
TL;DR

This paper proposes a kernel launch reordering technique to maximize concurrent execution on GPUs by optimizing the sequence in which independent kernels are launched, without modifying kernels. By balancing resource utilization (registers, shared memory, warps) and instruction-to-memory ratios across execution rounds, the method achieves near-optimal performance—ranking above the 94.8th percentile in permutation space and delivering up to 5.185× speedup over the worst-case order.

ABSTRACT

Contemporary GPUs allow concurrent execution of small computational kernels in order to prevent idling of GPU resources. Despite the potential concurrency between independent kernels, the order in which kernels are issued to the GPU will significantly influence the application performance. A technique for deriving suitable kernel launch orders is therefore presented, with the aim of reducing the total execution time. Experimental results indicate that the proposed method yields solutions that are well above the 90 percentile mark in the design space of all possible permutations of the kernel launch sequences.

Motivation & Objective

  • Address the performance degradation caused by suboptimal kernel launch order in GPU applications despite hardware support for concurrent kernel execution.
  • Overcome false dependencies and resource underutilization arising from non-commutative concurrency in CUDA streams.
  • Develop a scheduling algorithm that reorders kernel launches to maximize SM resource utilization and minimize execution rounds.
  • Improve overall GPU execution time by balancing compute and memory access ratios (Inst/Mem) across kernels in each execution round.
  • Provide a kernel-agnostic solution that does not require source code modification or kernel transformation.

Proposed method

  • Analyze kernel profiling data (N_tblk_i, N_reg_i, N_shm_i, N_warp_i, R_i) to compute resource and balance metrics per kernel.
  • Use a score matrix to rank kernel pairs based on their combined impact on resource utilization and R_comb (combined Inst/Mem ratio) in each execution round.
  • Apply a greedy algorithm to sequentially assign kernels to execution rounds, prioritizing combinations that maximize resource utilization and balance.
  • Ensure each execution round respects SM resource limits (N_reg_SM, N_shm_SM, N_warp_SM, N_blk_SM), with rounds opened only when resources are exhausted.
  • Compute the combined R_comb for each round as: R_comb = total instructions / (4 × (global stores + L1 cache load misses)).
  • Iteratively build kernel sequences by selecting the highest-scoring kernel for the current round until all kernels are scheduled.

Experimental results

Research questions

  • RQ1How does the order of kernel launches affect GPU execution time when multiple independent kernels are scheduled on the same GPU?
  • RQ2To what extent can reordering kernel launch sequences improve concurrent execution by balancing SM resource utilization and memory/compute ratios?
  • RQ3Can a kernel-agnostic reordering strategy outperform random or naive ordering without modifying kernel code?
  • RQ4How close can a heuristic-based launch reordering algorithm get to the optimal permutation in terms of execution time across diverse GPU workloads?
  • RQ5What is the impact of varying shared memory, grid size, and block size on the effectiveness of launch reordering?

Key findings

  • The proposed algorithm achieves a median performance ranking of 94.8th percentile across all 40,320 permutations in the EpBsEsSw-8 experiment, demonstrating near-optimal behavior.
  • In the EpBsEsSw-8 workload with 8 kernels from 4 different applications, the algorithm delivered a 5.185× speedup over the worst-case launch order.
  • For the EP-6-shm experiment, the algorithm achieved a 91.5th percentile ranking and only 4.21% deviation from the optimal execution time.
  • The algorithm consistently outperformed random ordering, with a 50% probability of delivering at least a 16.1% performance gain over random sequences.
  • The method achieved 96.5% or higher percentile ranking across all six benchmark experiments, including variations in shared memory, grid size, and block size.
  • The approach is effective only when kernels are non-identical and resource constraints (e.g., registers, shared memory) create contention—otherwise, launch order has no impact.

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.