-
Notifications
You must be signed in to change notification settings - Fork 157
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
Remove GDAL dependency in quadtree spatial join tests. #974
Remove GDAL dependency in quadtree spatial join tests. #974
Conversation
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.
No more gdal dependency!
std::uint32_t bits = hits_host[point_index]; | ||
while (bits != 0) { | ||
std::uint32_t t = bits & -bits; // get only LSB | ||
std::uint32_t poly_index = __builtin_ctzl(bits); // get index of LSB |
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.
Since it's int
type here, shouldn't the most compatible function is __builtin_ctz
instead of __builtin_ctzl
?
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.
LGTM, just left a small comment for discussion.
/merge |
Closes rapidsai#958. Replaces usage of GDAL `contains` in the quadtree point-in-polygon tests with a call to a different cuSpatial point-in-polygon function. This allows us to remove all current dependencies on GDAL in cuSpatial. Depends on rapidsai#973. This PR currently updates some expectations to make tests pass that are fixed in that PR. Authors: - Mark Harris (https://github.com/harrism) Approvers: - Michael Wang (https://github.com/isVoid) - H. Thomson Comer (https://github.com/thomcom) - Paul Taylor (https://github.com/trxcllnt) - Jordan Jacobelli (https://github.com/jjacobelli) URL: rapidsai#974
Description
Closes #958. Replaces usage of GDAL
contains
in the quadtree point-in-polygon tests with a call to a different cuSpatial point-in-polygon function. This allows us to remove all current dependencies on GDAL in cuSpatial.Depends on #973. This PR currently updates some expectations to make tests pass that are fixed in that PR.
Checklist