-
Notifications
You must be signed in to change notification settings - Fork 407
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
Deprecate Kokkos::vector
#6252
Deprecate Kokkos::vector
#6252
Conversation
some jenkins are failing bc DKokkos_ENABLE_DEPRECATED_CODE_4 is on, so this PR triggers the expected warning. |
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.
caveat the CI comments to be discussed
We confirmed in the meeting that we want to deprecate it. |
There are a couple unrelated failures (machine issues) |
#if defined(KOKKOS_ENABLE_DEPRECATED_CODE_4) | ||
#if defined(KOKKOS_ENABLE_DEPRECATION_WARNINGS) | ||
namespace { | ||
[[deprecated("Deprecated <Kokkos_Vector.hpp> header is included")]] int |
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.
@masterleinad why did you do this rather than KOKKOS_DEPRECATED_WITH_COMMENT
?
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.
What I cared about is using "#error" and including "Kokkos_Macros.hpp" but not so much about using KOKKOS_DEPRECATED_WITH_COMMENT
as opposed to KOKKOS_ENABLE_DEPRECATION_WARNINGS
. The way now at least only declares extra symbols when they are needed for the deprecation warning.
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.
Good enough.
To be pedantic, there will be no symbol, that is why I used an anonymous namespace.
Two failures look unrelated. One is lost connection with the runner, this other one is failure to start the container. |
Deprecated in kokkos/kokkos#6252
Rational:
Kokkos::vector
might have been relevant in the past to ease the transition to Kokkos but this is really not something we want people to use any more.It is at times the source of confusion (quite different to
Kokkos::array
,Kokkos::pair
, orKokkos::complex
).I suggest we mark it as deprecated and prepare for removal in Kokkos 5.0