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 OB bug in linestring_intersection_intermediates.remove_if Function #945

Merged
merged 6 commits into from
Feb 27, 2023

Conversation

isVoid
Copy link
Contributor

@isVoid isVoid commented Feb 18, 2023

Description

This PR fixes a bug mentioned by @thomcom at #862 (review). When computing the lookup id for each group to find the number of geometry removed in previous groups, the previous computation is flawed and resulted in OB access.

Besides, this PR also adds CUDA_TRY(cudaGetLastError()) in several kernel calls in the intersection code path.

This PR also refined the documentation for remove_if and related helper function.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@isVoid isVoid self-assigned this Feb 18, 2023
@isVoid isVoid requested a review from a team as a code owner February 18, 2023 01:05
@github-actions github-actions bot added the libcuspatial Relates to the cuSpatial C++ library label Feb 18, 2023
@isVoid isVoid added bug Something isn't working 3 - Ready for Review Ready for review by team non-breaking Non-breaking change labels Feb 18, 2023
@isVoid isVoid linked an issue Feb 18, 2023 that may be closed by this pull request
@isVoid isVoid changed the title Fix OB bug that exists in linestring_intersection_intermediates.remove_if function. Fix OB bug in linestring_intersection_intermediates.remove_if Function Feb 18, 2023
Copy link
Contributor

@thomcom thomcom left a comment

Choose a reason for hiding this comment

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

Confirmed by merging with #862 that the oob error is gone.

Copy link
Member

@harrism harrism left a comment

Choose a reason for hiding this comment

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

Use CUSPATIAL_CHECK_CUDA instead. Plus one question.

@isVoid isVoid requested a review from harrism February 24, 2023 00:32
@isVoid
Copy link
Contributor Author

isVoid commented Feb 27, 2023

/merge

@rapids-bot rapids-bot bot merged commit bb6788d into rapidsai:branch-23.04 Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team bug Something isn't working libcuspatial Relates to the cuSpatial C++ library non-breaking Non-breaking change
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

[BUG]: Bug Discovered in linestring_intersection_intermediates.remove_if
3 participants