Skip to content

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
Member

@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
-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
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