Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent out of range indexing #88

Merged
merged 1 commit into from
Jul 12, 2022
Merged

Conversation

AlexWilkinsonnn
Copy link
Member

It is possible to have an invalid time index in the atomic add in sum_pixel_signals. This happens fairly frequently but there is no runtime error when the index is only slightly out of range. For an event with a track with a very late start tick (event 15 of /dune/data2/users/awilkins/extrapolation/nd_cafs/edep/0m/00/FHC.1000000.edep.h5) I get a cuda runtime error. cuda-gdb with memcheck switched on pointed to these atomic adds as the cause.

It is possible to have an invalid time index in the atomic add in `sum_pixel_signals`. This happens fairly frequently but there is no runtime error when the index is only slightly out of range. For an event with a track with a very late start tick (event 15 of `/dune/data2/users/awilkins/extrapolation/nd_cafs/edep/0m/00/FHC.1000000.edep.h5`) I get a cuda runtime error. `cuda-gdb` with memcheck switched on pointed to these atomic adds as the cause.
@soleti soleti merged commit 887da6f into DUNE:master Jul 12, 2022
@soleti
Copy link
Collaborator

soleti commented Jul 12, 2022

Thank you for catching this and taking the time of making the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants