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

Add CUDA Healpix pad routines #7

Merged
merged 7 commits into from
Sep 3, 2024
Merged

Add CUDA Healpix pad routines #7

merged 7 commits into from
Sep 3, 2024

Conversation

daviddpruitt
Copy link
Collaborator

This adds Cuda padding routines for healpix xy grids so they don't have to be installed as a separate package.

Copy link
Collaborator

@nbren12 nbren12 left a 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(
Copy link
Collaborator

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?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

earth2grid/healpixpad.py Outdated Show resolved Hide resolved
earth2grid/healpixpad.py Outdated Show resolved Hide resolved
@nbren12
Copy link
Collaborator

nbren12 commented Sep 3, 2024

Thanks @daviddpruitt! I fixed the issue with the CI. The build was failing since CUDA is not installed in GitHub actions.

@nbren12
Copy link
Collaborator

nbren12 commented Sep 3, 2024

I think the matplotlib issue is fixed in #10, so will go ahead and merge. The test pass on my laptop.

@nbren12 nbren12 merged commit 0bb63e9 into main Sep 3, 2024
1 of 2 checks passed
@nbren12 nbren12 deleted the add_healpixpad branch September 3, 2024 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants