Skip to content

fix non-deterministic bug in uniform neighborhood sampling#2477

Merged
rapids-bot[bot] merged 2 commits intorapidsai:branch-22.08from
ChuckHastings:fix_uniform_neighborhood_sample_bug
Aug 2, 2022
Merged

fix non-deterministic bug in uniform neighborhood sampling#2477
rapids-bot[bot] merged 2 commits intorapidsai:branch-22.08from
ChuckHastings:fix_uniform_neighborhood_sample_bug

Conversation

@ChuckHastings
Copy link
Collaborator

Found a bug in uniform neighborhood sampling. Called a function that returns an optional. In SG mode the optional is always null. It was being dereferenced and passed to a function where random memory contents were being used.

Fixed the SG code to not use those values.

Closes #2446

@ChuckHastings ChuckHastings requested a review from a team as a code owner August 2, 2022 01:10
@ChuckHastings ChuckHastings self-assigned this Aug 2, 2022
@ChuckHastings ChuckHastings added bug Something isn't working 3 - Ready for Review non-breaking Non-breaking change labels Aug 2, 2022
@ChuckHastings ChuckHastings added this to the 22.08 milestone Aug 2, 2022
@codecov-commenter
Copy link

codecov-commenter commented Aug 2, 2022

Codecov Report

❗ No coverage uploaded for pull request base (branch-22.08@93e15c0). Click here to learn what that means.
The diff coverage is n/a.

@@               Coverage Diff               @@
##             branch-22.08    #2477   +/-   ##
===============================================
  Coverage                ?   61.21%           
===============================================
  Files                   ?      106           
  Lines                   ?     5553           
  Branches                ?        0           
===============================================
  Hits                    ?     3399           
  Misses                  ?     2154           
  Partials                ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 93e15c0...1aa0e2d. Read the comment docs.

@alexbarghi-nv alexbarghi-nv self-requested a review August 2, 2022 13:36
@ChuckHastings ChuckHastings requested a review from seunghwak August 2, 2022 15:57
@ChuckHastings
Copy link
Collaborator Author

rerun tests

Copy link
Member

@alexbarghi-nv alexbarghi-nv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChuckHastings this has fixed the error on my side.

@ChuckHastings
Copy link
Collaborator Author

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 0f2befb into rapidsai:branch-22.08 Aug 2, 2022
@ChuckHastings ChuckHastings deleted the fix_uniform_neighborhood_sample_bug branch August 4, 2022 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Illegal Memory Access when running neighborhood samppling

4 participants