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

Refactor ST_Distance header only API #1143

Conversation

isVoid
Copy link
Contributor

@isVoid isVoid commented May 19, 2023

Description

This PR refactors ST_Distance API to reduce the number of kernels to maintain. Currently, each st_distance API maintains its own distance kernel. This refactor let linestring_polygon distance and polygon_polygon distance share the underlying linestring-linestring distance. Also, point-polygon distance now share the same kernel with point-linestring distance kernel.

As we are moving to optimization, reducing the total number of kernel to maintain can help scaling the optimization benefit across multiple APIs.

Checklist

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

@github-actions github-actions bot added the libcuspatial Relates to the cuSpatial C++ library label May 19, 2023
@isVoid isVoid marked this pull request as ready for review May 25, 2023 20:12
@isVoid isVoid requested a review from a team as a code owner May 25, 2023 20:12
@isVoid isVoid requested review from trxcllnt and harrism May 25, 2023 20:12
@isVoid isVoid self-assigned this May 25, 2023
@isVoid isVoid added 3 - Ready for Review Ready for review by team improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels May 25, 2023
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.

Elegant simplification. Can you please update the PR description since this is no longer a placeholder?

@isVoid isVoid linked an issue May 30, 2023 that may be closed by this pull request
@harrism
Copy link
Member

harrism commented May 31, 2023

/merge

@rapids-bot rapids-bot bot merged commit 88b86da into rapidsai:branch-23.06 May 31, 2023
25 checks passed
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 improvement Improvement / enhancement to an existing function libcuspatial Relates to the cuSpatial C++ library non-breaking Non-breaking change
Projects
Status: Review
Development

Successfully merging this pull request may close these issues.

Refactor st_distance kernels to increase modularity
3 participants