paper-with-me

Papers

PyGraph: Robust Compiler Support for CUDA Graphs in PyTorch

2025-03-25 · Abhishek Ghosh, Ajay Nayak, Ashish Panwar, Arkaprava Basu

CUDA Graphs -- a recent hardware feature introduced for NVIDIA GPUs -- aim to reduce CPU launch overhead by capturing and launching a series of GPU tasks (kernels) as a DAG. However, deploying CUDA Graphs faces several challenges today due to the static structure of a graph. It also incurs performance overhead due to data copy. In fact, we show a counter-intuitive result -- deploying CUDA Graphs hurts performance in many cases. We introduce PyGraph, a novel approach to automatically harness the power of CUDA Graphs within PyTorch2. Driven by three key observations, PyGraph embodies three novel optimizations: it enables wider deployment of CUDA Graphs, reduces GPU kernel parameter copy overheads, and selectively deploys CUDA Graphs based on a cost-benefit analysis. PyGraph seamlessly integrates with PyTorch2's compilation toolchain, enabling efficient use of CUDA Graphs without manual modifications to the code. We evaluate PyGraph across various machine learning benchmarks, demonstrating substantial performance improvements over PyTorch2.

📄 PDF Abstract BibTeX arXiv:2503.19779

Code (0)

등록된 구현이 없습니다.

Tasks

CPUGPU

Similar Papers 제목 키워드 기반

AgentCompile: An LLM-Guided Compiler for Direct CUDA Inference

2026-06-04 · Xuanzhe Li, Ziyan Weng, Zhiyu Zhu, Junhui Hou arxiv

Transformer inference increasingly depends on specialized compiler and runtime support, but real model graphs still require semantic decisions about which regions are worth specializing and which CUDA implementation fami…

CuBridge: An LLM-Based Framework for Understanding and Reconstructing High-Performance Attention Kernels

2026-05-06 · Xing Ma, Yangjie Zhou, Wu Sun, Zihan Liu 외 arxiv

Efficient CUDA implementations of attention mechanisms are critical to modern deep learning systems, yet supporting diverse and evolving attention variants remains challenging. Existing frameworks and compilers trade per…

No Saved Kaleidosope: an 100% Jitted Neural Network Coding Language with Pythonic Syntax

2024-09-17 · Augusto Seben da Rosa, Marlon Daniel Angeli, Jorge Aikes Junior, Alef Iury Ferreira 외

We developed a jitted compiler for training Artificial Neural Networks using C++, LLVM and Cuda. It features object-oriented characteristics, strong typing, parallel workers for data pre-processing, pythonic syntax for e…

HPCTransCompile: An AI Compiler Generated Dataset for High-Performance CUDA Transpilation and LLM Preliminary Exploration

2025-06-12 · Jiaqi Lv, Xufeng He, Yanchen Liu, Xu Dai 외

The rapid growth of deep learning has driven exponential increases in model parameters and computational demands. NVIDIA GPUs and their CUDA-based software ecosystem provide robust support for parallel computing, signifi…

CPUData Augmentation

Memory-Efficient Acceleration of Block Low-Rank Foundation Models on Resource Constrained GPUs

2025-12-24 · Pierre Abillama, Changwoo Lee, Juechu Dong, David Blaauw 외 arxiv

Recent advances in transformer-based foundation models have made them the default choice for many tasks, but their rapidly growing size makes fitting a full model on a single GPU increasingly difficult and their computat…