Commit 94a278b
authored
refactor(dd4hep): remove redundant cudaDeviceSynchronize in OpticsEvent (#335)
`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.1 parent be460aa commit 94a278b
1 file changed
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| |||
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
97 | | - | |
98 | 96 | | |
99 | 97 | | |
100 | 98 | | |
| |||
0 commit comments