-
Notifications
You must be signed in to change notification settings - Fork 406
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
Suppress deprecated warnings via pragma push/pop in the tests #6999
Merged
dalg24
merged 3 commits into
kokkos:develop
from
dalg24:suppress_deprecated_warnings_in_automated_testing
May 13, 2024
Merged
Suppress deprecated warnings via pragma push/pop in the tests #6999
dalg24
merged 3 commits into
kokkos:develop
from
dalg24:suppress_deprecated_warnings_in_automated_testing
May 13, 2024
+33
−0
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
to suppress diagnostics when appropriate
dalg24
added
Failure - Nightly
Nightly Build Failure
Deprecate
Items to be deprecated
labels
May 8, 2024
dalg24
commented
May 8, 2024
and provide a fallback empty definition for the macros
dalg24
changed the title
Suppress deprecated warnings in automated testing
Suppress deprecated warnings via pragma push/pop in the tests
May 9, 2024
masterleinad
approved these changes
May 10, 2024
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.
Looks OK to me.
Rombur
reviewed
May 13, 2024
nmm0
approved these changes
May 13, 2024
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.
Looks good to me!
dalg24
added a commit
to dalg24/kokkos
that referenced
this pull request
May 21, 2024
Fixup for kokkos#6999 Deprecation warnings are still showing in the OpenACC CI build ``` "/var/jenkins/workspace/Kokkos_PR-7017/core/unit_test/TestArrayOps.hpp", line 136: warning: class "Kokkos::Array<int, 18446744073709551615UL, Kokkos::Impl::KokkosArrayContiguous>" was declared deprecated [deprecated_entity] using A = ^ "/var/jenkins/workspace/Kokkos_PR-7017/core/src/Kokkos_Array.hpp", line 217: note: because of a "deprecated" attribute struct KOKKOS_DEPRECATED ^ Remark: individual warnings can be suppressed with "--diag_suppress <warning-name>" "/var/jenkins/workspace/Kokkos_PR-7017/core/unit_test/TestArrayOps.hpp", line 197: warning: class "Kokkos::Array<int, 18446744073709551615UL, Kokkos::Impl::KokkosArrayContiguous>" was declared deprecated [deprecated_entity] using A = ^ "/var/jenkins/workspace/Kokkos_PR-7017/core/src/Kokkos_Array.hpp", line 217: note: because of a "deprecated" attribute struct KOKKOS_DEPRECATED ^ "/var/jenkins/workspace/Kokkos_PR-7017/core/unit_test/TestArrayOps.hpp", line 274: warning: class "Kokkos::Array<int, 18446744073709551615UL, Kokkos::Impl::KokkosArrayStrided>" was declared deprecated [deprecated_entity] using A = Kokkos::Array<int, KOKKOS_INVALID_INDEX, Kokkos::Array<>::strided>; ^ "/var/jenkins/workspace/Kokkos_PR-7017/core/src/Kokkos_Array.hpp", line 286: note: because of a "deprecated" attribute struct KOKKOS_DEPRECATED ^ "/var/jenkins/workspace/Kokkos_PR-7017/core/unit_test/TestArrayOps.hpp", line 338: warning: class "Kokkos::Array<int, 18446744073709551615UL, Kokkos::Impl::KokkosArrayStrided>" was declared deprecated [deprecated_entity] using A = Kokkos::Array<int, KOKKOS_INVALID_INDEX, Kokkos::Array<>::strided>; ^ "/var/jenkins/workspace/Kokkos_PR-7017/core/src/Kokkos_Array.hpp", line 286: note: because of a "deprecated" attribute struct KOKKOS_DEPRECATED ^ ``` The generic EDG warning disable did not work so we handle NVC++ separately and push a diag_suppress pragma. In case anyone wants to try something else https://godbolt.org/z/nxWbPMT95
dalg24
added a commit
to dalg24/kokkos
that referenced
this pull request
May 21, 2024
Fixup for kokkos#6999 Deprecation warnings are still showing in the OpenACC CI build ``` "/var/jenkins/workspace/Kokkos_PR-7017/core/unit_test/TestArrayOps.hpp", line 136: warning: class "Kokkos::Array<int, 18446744073709551615UL, Kokkos::Impl::KokkosArrayContiguous>" was declared deprecated [deprecated_entity] using A = ^ "/var/jenkins/workspace/Kokkos_PR-7017/core/src/Kokkos_Array.hpp", line 217: note: because of a "deprecated" attribute struct KOKKOS_DEPRECATED ^ Remark: individual warnings can be suppressed with "--diag_suppress <warning-name>" "/var/jenkins/workspace/Kokkos_PR-7017/core/unit_test/TestArrayOps.hpp", line 197: warning: class "Kokkos::Array<int, 18446744073709551615UL, Kokkos::Impl::KokkosArrayContiguous>" was declared deprecated [deprecated_entity] using A = ^ "/var/jenkins/workspace/Kokkos_PR-7017/core/src/Kokkos_Array.hpp", line 217: note: because of a "deprecated" attribute struct KOKKOS_DEPRECATED ^ "/var/jenkins/workspace/Kokkos_PR-7017/core/unit_test/TestArrayOps.hpp", line 274: warning: class "Kokkos::Array<int, 18446744073709551615UL, Kokkos::Impl::KokkosArrayStrided>" was declared deprecated [deprecated_entity] using A = Kokkos::Array<int, KOKKOS_INVALID_INDEX, Kokkos::Array<>::strided>; ^ "/var/jenkins/workspace/Kokkos_PR-7017/core/src/Kokkos_Array.hpp", line 286: note: because of a "deprecated" attribute struct KOKKOS_DEPRECATED ^ "/var/jenkins/workspace/Kokkos_PR-7017/core/unit_test/TestArrayOps.hpp", line 338: warning: class "Kokkos::Array<int, 18446744073709551615UL, Kokkos::Impl::KokkosArrayStrided>" was declared deprecated [deprecated_entity] using A = Kokkos::Array<int, KOKKOS_INVALID_INDEX, Kokkos::Array<>::strided>; ^ "/var/jenkins/workspace/Kokkos_PR-7017/core/src/Kokkos_Array.hpp", line 286: note: because of a "deprecated" attribute struct KOKKOS_DEPRECATED ^ ``` The generic EDG warning disable did not work so we handle NVC++ separately and use diagnostic pragmas. In case anyone wants to try something else https://godbolt.org/z/nxWbPMT95
This was referenced May 21, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduce
KOKKOS_IMPL_DISABLE_DEPRECATED_WARNINGS_{PUSH,POP}
macros to suppress diagnostics when appropriate and fix all the warnings I could see in our tests.Just in case we need to rework the suppressions macros https://godbolt.org/z/Pjd7hYba9