From cc0868c1804a3a0bf2cfb480a0b48579db0ca58f Mon Sep 17 00:00:00 2001 From: Gabor Galgoczi Date: Tue, 19 May 2026 10:14:06 -0400 Subject: [PATCH] Remove cudaDeviceSynchronize from OpticsEvent Removed unnecessary cudaDeviceSynchronize call from simulation process. --- dd4hepplugins/OpticsEvent.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/dd4hepplugins/OpticsEvent.cc b/dd4hepplugins/OpticsEvent.cc index 5de1fc8e0..134ee472d 100644 --- a/dd4hepplugins/OpticsEvent.cc +++ b/dd4hepplugins/OpticsEvent.cc @@ -10,7 +10,6 @@ #include #include -#include #include #include @@ -94,7 +93,6 @@ void OpticsEvent::end(G4Event const *event) { auto sim_t0 = std::chrono::high_resolution_clock::now(); gx->simulate(eventID, /*reset=*/false); - cudaDeviceSynchronize(); auto sim_t1 = std::chrono::high_resolution_clock::now(); double simulate_ms = std::chrono::duration(sim_t1 - sim_t0).count();