-
Notifications
You must be signed in to change notification settings - Fork 2
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 Healpix pad routines #7
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.
Great work @daviddpruitt. A couple of requests:
- fix CPU-only use. The library should be installable without a GPU/CUDA installation.
- harmonize the various python healpixpad interfaces (see comment below).
setup.py
Outdated
@@ -63,7 +67,12 @@ def get_compiler(): | |||
src_files, | |||
extra_compile_args=extra_compile_args, | |||
include_dirs=[os.path.abspath("earth2grid/csrc"), os.path.abspath("earth2grid/third_party/healpix_bare")], | |||
) | |||
), | |||
cpp_extension.CUDAExtension( |
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.
Can you add a check to only include this extension if cuda is present?
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.
Done
Thanks @daviddpruitt! I fixed the issue with the CI. The build was failing since CUDA is not installed in GitHub actions. |
I think the matplotlib issue is fixed in #10, so will go ahead and merge. The test pass on my laptop. |
This adds Cuda padding routines for healpix xy grids so they don't have to be installed as a separate package.