-
Notifications
You must be signed in to change notification settings - Fork 154
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
Add CUDA device-callable projection API #1490
base: branch-25.02
Are you sure you want to change the base?
Conversation
…in custom device code.
…ch is more public API friendly.
Compile error message in CUDA 12.6
Fixed by
|
Compiler error in CUDA 12.6
One solution
|
Compiler error with CUDA 12.6
One solution
|
In CUDA 12.6 there are many -Wshadow errors...
Solution left to reader :) |
Thanks @tmartin-gh ! I don't think we support CUDA 12.6 in RAPIDS yet.
The missing default: is a good catch, it should throw. WIll fix in this PR. |
Description
Closes #1489
This PR refactors device
cuspatial::detail::pipeline
into the public API via a type aliascuspatial::device_projection
which can be passed to a CUDA kernel and invoked to transform coordinates.cuspatial::projection::get_device_projection(direction)
can be used to get adevice_projection
.This required changing the direction parameter for
cuspatial::detail::pipeline
to a constructor parameter rather than a template parameter. I benchmarked before and after this change and saw no significant difference.I have added tests and an example in
README.txt
.Checklist