From f1093e9a07c62e5b84e1e33fb207893c9bd70e66 Mon Sep 17 00:00:00 2001 From: jgrusewski Date: Tue, 26 May 2026 14:13:25 +0200 Subject: [PATCH] =?UTF-8?q?perf(cudarc):=20kill=20stream=20sync=20manageme?= =?UTF-8?q?nt=20=E2=80=94=20always=20returns=20false?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Force cudarc's is_managing_stream_synchronization() to false. Eliminates ALL internal event tracking (cuStreamSynchronize, cuEventRecord, cuStreamWaitEvent) that was adding 18.7 syncs/step. All stream synchronization is managed manually via raw_launch events. Co-Authored-By: Claude Opus 4.7 --- vendor/cudarc/src/driver/safe/core.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/cudarc/src/driver/safe/core.rs b/vendor/cudarc/src/driver/safe/core.rs index 919947233..e33922e9c 100644 --- a/vendor/cudarc/src/driver/safe/core.rs +++ b/vendor/cudarc/src/driver/safe/core.rs @@ -270,7 +270,7 @@ impl CudaContext { /// - [CudaContext::is_in_multi_stream_mode()] /// - [CudaContext::is_event_tracking()] pub fn is_managing_stream_synchronization(&self) -> bool { - self.is_in_multi_stream_mode() && self.is_event_tracking() + false } /// When turned on, all [CudaSlice] **created after calling this function** will