Skip navigation
Part 1: CUDA Graphs - Intro & Basics
0:00 / 6:26

Part 1: CUDA Graphs - Intro & Basics

mohit

@mohitwt_7.7K followers

Visit on X
431 likesDownloadOriginal post

29,181 views

Part 1: CUDA Graphs - Intro & Basics - how normal CPU ←→ GPU execution works - what a kernel launch is and where CPU launch overhead comes from - why launching many small kernels individually can become a bottleneck - what CUDA Graphs are and how they reduce CPU launch overhead - common benefits of using CUDA Graphs - the two ways to create CUDA Graphs: a. Explicit Graph Construction b. Stream Capture - where these graph creation methods are used - the CUDA Graph lifecycle: capture → instantiate/prepare → replay this is the first ever content that ive recorded and taught, its genuinely so much harder to record than i thought lmao, feedback's are appreciated and hopefully it just gets better from here youtube link shared below

13 Comments

Comments from the original post on X (Twitter)

  • Manoj's profile picture

    @ThedatagGuy

    So if a beginner like me can follow u from day 1 Any prerequisites for this?

    1 like

  • mohit's profile picture

    @mohitwt_

    i would say you would still need some inference knowledge or context of if u get what I mean because I'm doing topics that I haven't deeply done or missing in upcoming days, so following my exact path as beginner won't work but if u happen to learn about cuda graphs or torch.compile, later ptx etc, you can easily watch and follow these topics

    1 like

  • adi's profile picture

    @jerkeyray

    my goat

    1 like

  • prasanna's profile picture

    @jaga_prasanna

    Bro one shottted ? Sick man keep it coming

    1 like

  • mohit's profile picture

    @mohitwt_

    nah lol, ~60 tries for 2 clips - its 2 seperate clips that i merged

    1 like

  • Sisyphus's profile picture

    @sadsisyphus3

    Start a youtube

    1 like

  • jbz's profile picture

    @jibrangulzar

    Please help me with DMing you.

    1 like

  • mohit's profile picture

    @mohitwt_

    sure

  • jbz's profile picture

    @jibrangulzar

    still can’t

  • mohit's profile picture

    @mohitwt_

    dmed you

  • AI Apps API's profile picture

    @AIAppsAPI

    Great breakdown. Where this really bites is LLM inference decoding: you launch a flurry of tiny kernels per token and CPU launch overhead dominates at small batch sizes. Capturing the decode step as a graph and replaying it is one of the biggest easy wins for tokens per second.

    1 like

  • Vishnu's profile picture

    @itsvishhh

    🗿🗿

    1 like

  • Vighnesh's profile picture

    @Mr_V_H

    second follow

    1 like