-
Notifications
You must be signed in to change notification settings - Fork 52
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
Minor fixes to the track building kernel #859
Conversation
Nice catch. Could you fix the same bugs in CPU code: https://github.com/acts-project/traccc/blob/main/core/include/traccc/finding/details/find_tracks.hpp ? |
Ah yes, of course! |
bca39f4
to
7689fc7
Compare
There we go! 😄 |
7689fc7
to
e588c4b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Clearly this warrants some more investigation... 🤔 |
While debugging the CI failures in acts-project#859, I found out that the problem was not with my code, but rather that there is a critical failure with the use of `std::forward` in `host_container.cpp`, which causes objects passed to `push_back` as l-value references to be inadvertently converted to r-value references. This commit fixes the bug in `host_container.hpp`. The `nseed_performance_writer.cpp` contained a much less serious mistake which I also fixed.
e588c4b
to
82fc14d
Compare
This commit makes some minor fixes and improvements to the track building kernel. In particular, it: 1. Fixes an error where we were comparing measurements indices to see if they were _larger_ than the total number of measurements, but they should be check also for _equality_. 2. Fail more gracefully if we cannot find any true measurements, i.e. register the failed track as a candidate for pruning. 3. Simplify the control flow of the kernel by removing an unnecessary break statement.
82fc14d
to
bcd8fdd
Compare
I will update the branch by myself and merge it once the CI passes |
|
This commit makes some minor fixes and improvements to the track building kernel. In particular, it: