CuTe DSL for JAX Developers: Writing Custom GPU Kernels in Python @NVIDIADeveloper
CuTe DSL for JAX Developers: Writing Custom GPU Kernels in Python  @NVIDIADeveloper
Uploaded May 2026 | Updated November 2026, 1 day ago
CuTe DSL for JAX is a practical way to write custom high-performance GPU kernels in Python while keeping your workflow inside the JAX ecosystem. In this video, we’ll explore how CuTe DSL for JAX lets you build custom NVIDIA GPU kernels with CUTLASS CuTe DSL, then call them from JAX as if they were native JAX operations.

JAX already delivers excellent performance on NVIDIA GPUs, but there are times when you need more control than XLA can provide automatically. You might need a fused operation, a custom memory layout, a non-standard primitive, or a kernel designed for a very specific performance bottleneck. This tutorial walks through a hands-on workflow for writing those kernels in Python and integrating them cleanly into compiled JAX programs.
We’ll start with the mental model behind CUTLASS and CuTe, including how tensors, layouts, threads, blocks, and launch shapes fit together. Then we’ll move through practical examples, beginning with vector add and SAXPY, before building ReLU and a fused bias plus ReLU kernel to show why fusion can reduce kernel launches and memory traffic. We’ll also look at a tiled GEMM example to demonstrate tiling, launch configuration, and the limits of a simple educational implementation compared with highly optimized library calls.

The video also covers how custom CuTe kernels can compose with JAX features such as @jax.jit and multi-GPU sharding. You’ll see how cutlass.jax.cutlass_call bridges a CuTe launcher with JAX’s compiled execution model, allowing your custom kernel to run as part of a larger JAX program.

Finally, we’ll introduce Ahead-of-Time compilation with jax.export. You’ll learn how to export, serialize, deserialize, and run a JAX function that includes a CUTLASS custom call, including how symbolic shapes can make exported artifacts more reusable.

By the end, you’ll understand where CuTe DSL for JAX fits, when it is useful, and how to start building custom GPU kernels for fusion, special layouts, custom data movement, and performance-critical JAX workloads.

➡️ CuTe DSL tutorial notebooks: github.com/jax-ml/jax/blob/main/docs/notebooks/cute_dsl_jax.ipynb
📝 DevLab talk ‘Leveraging CuTeDSL in JAX’: youtu.be/v_DV61ErjAY

00:00 – Introduction
01:51 – CUTLASS, CuTe DSL and why they exist
03:36 – Two-layer kernel structure
04:13 – Vector add
05:51 – What cutlass_call is really doing
06:52 – SAXPY and scalar parameters
07:44 – ReLU with flat indexing
08:29 – Fused bias and ReLU and why fusion matters
09:25 – Tiled GEMM
10:04 – Multi-GPU composability with shard_map
10:53 – Ahead-of-Time compilation
12:25 – Practical tips and gotchas to call out

#CuTeDSL #JAX #NVIDIAGPU #CUTLASS #GPUKernels #CUDA #Python #JAXJIT #XLA #MachineLearning #DeepLearning #KernelFusion #MultiGPU #AOTCompilation #NVIDIADeveloper
CuTe DSL for JAX Developers: Writing Custom GPU Kernels in PythonAsk the Experts: Evaluating Agent Skills | Nemotron LabsTraining High-Resolution Weather Models (Regional) with NVIDIA Earth-2CUDA Live:  Introduction to CUDA RustYour Spark, Your Story: Selena Williams | NVIDIA RTX SparkReduce Portfolio Churn with Ledoit-Wolf Covariance ShrinkageHow to Fine-Tune Models Beyond Cosmos With NVIDIA Cosmos FrameworkInside Hermes Agent Traces with NeMo Relay | Nemotron LabsHow McCarthy Fine-Tuned NVIDIA Nemotron for Cost & Schedule CertaintyGTC Berlin After Hours: Keynote Reactions & What’s Next for DevelopersFrom Theory to Practice—Prototyping 6G With the NVIDIA Sionna Research KitReduce Noise and Improve BERTopic Results with GPU-Accelerated Topic Modeling
NVIDIA Developer |

CuTe DSL for JAX Developers: Writing Custom GPU Kernels in Python

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER