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 macros, bump patch version #79

Merged
merged 1 commit into from
Jun 5, 2024
Merged

Conversation

charleskawczynski
Copy link
Member

This PR refactors the macros to avoid code loading logic inside macros.

Copy link
Member

@Sbozzolo Sbozzolo left a comment

Choose a reason for hiding this comment

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

Thank you! This is good solution (if everything works)

src/devices.jl Show resolved Hide resolved
src/loading.jl Show resolved Hide resolved
src/loading.jl Show resolved Hide resolved
src/context.jl Outdated Show resolved Hide resolved
NEWS.md Outdated Show resolved Hide resolved
src/loading.jl Outdated Show resolved Hide resolved
@@ -26,13 +42,13 @@ If the desired device is CUDA (as determined by `ClimaComms.device()`), try load
"""
macro import_required_backends()
return quote
@static if $mpi_is_required() && $mpi_ext_is_not_loaded()
@static if $mpi_is_required()
Copy link
Member Author

Choose a reason for hiding this comment

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

I've removed the mpi_ext_is_loaded check, since it is a no-op. Also, the function says that it will import the required.

@charleskawczynski
Copy link
Member Author

Let's try this out.

@charleskawczynski charleskawczynski merged commit 50703f5 into main Jun 5, 2024
6 checks passed
@charleskawczynski charleskawczynski mentioned this pull request Jun 7, 2024
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