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

Avoid compiler warnings #287

Merged
merged 1 commit into from
May 24, 2024

Conversation

masterleinad
Copy link
Collaborator

While working on #282, I noticed that there are more warnings which this pull request fixes. I wasn't sure if we wanted to enforce this with -Werror or similar.

@masterleinad masterleinad marked this pull request as ready for review May 20, 2024 21:10
Copy link
Collaborator

@stvdwtt stvdwtt left a comment

Choose a reason for hiding this comment

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

These look good to me. @Rombur, any concerns?

@Rombur
Copy link
Member

Rombur commented May 23, 2024

@Rombur, any concerns?

Yes, don't merge it. I will do a proper review later but we should not merge as is.

@stvdwtt stvdwtt requested a review from Rombur May 23, 2024 15:58
ci/Dockerfile Outdated
@@ -220,6 +220,7 @@ RUN export TRILINOS_HASH=975307431d60d0859ebaa27c9169cbb1d4287513 && \
-DTrilinos_ENABLE_SEACAS=ON \
-DTrilinos_ENABLE_EXPLICIT_INSTANTIATION=ON \
-DKokkos_ENABLE_CUDA=$CUDA \
-DKokkos_ENABLE_CUDA_CONSTEXPR=$CUDA \
Copy link
Member

Choose a reason for hiding this comment

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

Don't modify the Dockerfile. This will unsync the image with the Dockerfile.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

OK. I'll remove but most of the warnings are related to setting this option.

Copy link
Member

Choose a reason for hiding this comment

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

Then why are you setting this option if it creates a bunch of warnings?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It removes all warnings related to calling constexpr host functions. This is also what we are doing in the deal.II CI, see https://github.com/dealii/dealii/blob/3c3910b004cec9be552eb224ceba4bc6fecd47b6/.github/workflows/linux.yml#L335, and we check for this option to be set for an external standalone Kokkos, see https://github.com/dealii/dealii/blob/3c3910b004cec9be552eb224ceba4bc6fecd47b6/cmake/modules/FindDEAL_II_KOKKOS.cmake#L53.

@Rombur Rombur merged commit 135f55d into adamantine-sim:master May 24, 2024
1 check passed
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.

3 participants