-
Notifications
You must be signed in to change notification settings - Fork 539
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
Fix check_labels
function
#5971
base: branch-24.08
Are you sure you want to change the base?
Fix check_labels
function
#5971
Conversation
/ok to test |
/ok to test |
/ok to test |
/ok to test |
/ok to test |
|
||
__syncthreads(); | ||
|
||
if (!found && tid < n_labels) { |
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.
found will always be false at this point?
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.
A thread with tid < n_labels
does not check the presence of a class for a label, but it is still necessary to correctly fetch the data for every pass. The found
value will indeed always be false, but a thread with tid < n_labels
will never write the final output, it should thus be safe.
Solving #4923