Skip to content

refactor(dd4hep): remove redundant cudaDeviceSynchronize in OpticsEvent#335

Merged
plexoos merged 1 commit into
mainfrom
refactor/dd4hep-drop-redundant-sync
May 19, 2026
Merged

refactor(dd4hep): remove redundant cudaDeviceSynchronize in OpticsEvent#335
plexoos merged 1 commit into
mainfrom
refactor/dd4hep-drop-redundant-sync

Conversation

@ggalgoczi
Copy link
Copy Markdown
Contributor

OpticsEvent::end calls cudaDeviceSynchronize() immediately after G4CXOpticks::simulate(), but simulate() already drains the device internally, CSGOptiX::simulate_launch follows every optixLaunch with CUDA_SYNC_CHECK() . Tested, works.

Removed unnecessary cudaDeviceSynchronize call from simulation process.
@ggalgoczi ggalgoczi requested a review from plexoos May 19, 2026 14:16
@ggalgoczi ggalgoczi self-assigned this May 19, 2026
@ggalgoczi
Copy link
Copy Markdown
Contributor Author

Will open PR also in other places where we use this.

@plexoos plexoos merged commit 94a278b into main May 19, 2026
23 of 24 checks passed
@plexoos plexoos deleted the refactor/dd4hep-drop-redundant-sync branch May 19, 2026 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants