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

Fix check_labels function #5971

Open
wants to merge 7 commits into
base: branch-24.08
Choose a base branch
from

Conversation

viclafargue
Copy link
Contributor

Solving #4923

@viclafargue viclafargue requested a review from a team as a code owner July 23, 2024 12:02
Copy link

copy-pr-bot bot commented Jul 23, 2024

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@dantegd
Copy link
Member

dantegd commented Jul 24, 2024

/ok to test

@dantegd dantegd added bug Something isn't working non-breaking Non-breaking change labels Jul 24, 2024
@dantegd
Copy link
Member

dantegd commented Jul 26, 2024

/ok to test

@dantegd
Copy link
Member

dantegd commented Jul 29, 2024

/ok to test

@dantegd
Copy link
Member

dantegd commented Jul 30, 2024

/ok to test

@dantegd
Copy link
Member

dantegd commented Jul 30, 2024

/ok to test


__syncthreads();

if (!found && tid < n_labels) {
Copy link
Member

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?

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Cython / Python Cython or Python issue non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants