From 6444b29651dcf28a40cba0e88fe659cebfe464d0 Mon Sep 17 00:00:00 2001 From: Cheng Date: Sat, 19 Jul 2025 19:09:46 -0700 Subject: [PATCH] Plan needs to be kept alive --- mlx/backend/cuda/conv.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mlx/backend/cuda/conv.cpp b/mlx/backend/cuda/conv.cpp index 4a2917254..fd3bc1118 100644 --- a/mlx/backend/cuda/conv.cpp +++ b/mlx/backend/cuda/conv.cpp @@ -147,6 +147,7 @@ bool execute_plan( return false; } + encoder.add_completed_handler([plan = std::move(plan)]() {}); encoder.add_temporary(workspace); return true; }