From 6c5785bc2fed005ea713e56db5b480b62f98022e Mon Sep 17 00:00:00 2001 From: Awni Hannun Date: Mon, 1 Dec 2025 19:02:47 -0800 Subject: [PATCH] use thread local cpature mode (#2850) --- mlx/backend/cuda/device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlx/backend/cuda/device.cpp b/mlx/backend/cuda/device.cpp index beb42052..afea647b 100644 --- a/mlx/backend/cuda/device.cpp +++ b/mlx/backend/cuda/device.cpp @@ -87,7 +87,7 @@ CommandEncoder::CaptureContext::CaptureContext(CommandEncoder& enc) : enc(enc) { return; } CHECK_CUDA_ERROR( - cudaStreamBeginCapture(enc.stream(), cudaStreamCaptureModeGlobal)); + cudaStreamBeginCapture(enc.stream(), cudaStreamCaptureModeThreadLocal)); } CommandEncoder::CaptureContext::~CaptureContext() {