PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
March 4, 2026Electronics1 citationsOpen Access

Analyzing the Impact of Kernel Fusion on GPU Tensor Operation Performance: A Systematic Performance Study

View Full Paper
MDMatija DodovićMVMilica R. VeselinovićMMMarko Mišić

Key Points

  • The central aim is to evaluate the performance impact of kernel fusion on GPU tensor operations and end-to-end model execution.
  • Conducted experiments on three different NVIDIA GPUs.
  • Built and compared fused and unfused CUDA kernels for various tensor operations.
  • Measured execution time, speedup, and effective memory bandwidth.
  • Investigated effects on image classification models using PyTorch.
  • Kernel fusion achieved speedups between 1.5× and 3.13× for memory-bound and activation-heavy workloads.
  • Limited benefits of fusion (1.01× to 1.44×) observed for operations dominated by atomic updates.
  • Block-level shared-memory aggregation can enhance fusion effectiveness, achieving up to 2× speedup.
  • For image classification models, fusion led to 1.54× to 1.83× faster inference.

Abstract

Large numbers of small tensor kernels are executed by GPUs in modern deep learning frameworks, where total performance is frequently constrained by memory bandwidth and kernel launch overheads. Systems such as TensorFlow XLA, PyTorch JIT, and cuDNN often use kernel fusion, which is defined as combining many tensor operations into a single GPU kernel, to reduce intermediate memory transfers and boost efficiency. Nevertheless, it is difficult to measure the true performance impact of fusion on both isolated tensor operations and end-to-end model execution. An experimental investigation of kernel fusion on three different NVIDIA GPUs is presented in this work. For four sample tensor operations: element-wise addition, fused multiply–add, linear transformation with ReLU activation, and map-reduce, we build fused and unfused CUDA kernels using FP32, FP16, and mixed-precision arithmetics. We measure execution time, speedup, and effective memory bandwidth across a range of input sizes. For memory-bound and activation-heavy workloads, fusion yields consistent speedups between 1.5× and 3.13×, particularly for small and medium inputs where kernel launch overhead is significant. For operations dominated by atomic updates, the benefit is limited to between 1.01× and 1.44×. When the reduction strategy is reformulated using block-level shared-memory aggregation, kernel fusion becomes effective again, achieving speedups of up to 2× by eliminating global synchronization bottlenecks. We further evaluate the effect of fusion on image classification models using PyTorch 2.10.0 JIT, achieving 1.54× to 1.83× faster inference. Our results provide practical guidelines on when kernel fusion is most effective.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Dodović et al. (2026) studied this question.

synapsesocial.com/papers/69a7cc7ad48f933b5eed815ehttps://doi.org/10.3390/electronics15051034
Ask AI
Helpful
Bookmark
Share
View Full Paper