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

Kokkos::vector'is deprecated #1019

Closed
bartgol opened this issue Nov 29, 2023 · 9 comments · Fixed by #1034
Closed

Kokkos::vector'is deprecated #1019

bartgol opened this issue Nov 29, 2023 · 9 comments · Fixed by #1034
Labels
Code cleanup Trilinos Stuff related to trilinos

Comments

@bartgol
Copy link
Collaborator

bartgol commented Nov 29, 2023

I started to see this warning since I upgraded Trilinos:

In file included from /home/lbertag/workdir/albany/albany-src/branch/src/evaluators/gather/PHAL_GatherSolution.cpp:9:
/home/lbertag/workdir/albany/albany-src/branch/src/evaluators/gather/PHAL_GatherSolution.hpp:135:24: warning: 'template<class Scalar, class Arg1Type> class Kokkos::vector' is deprecated [-Wdeprecated-declarations]
  135 |     using KV = Kokkos::vector<DynRankView, PHX::Device>;
      |                        ^~~~~~
In file included from /home/lbertag/workdir/albany/albany-src/branch/src/evaluators/gather/PHAL_GatherSolution.hpp:23,
                 from /home/lbertag/workdir/albany/albany-src/branch/src/evaluators/gather/PHAL_GatherSolution.cpp:9:
/storage/workdir/trilinos/trilinos-install/groppello/gcc/opt/develop-serial/include/Kokkos_Vector.hpp:52:25: note: declared here
   52 | class KOKKOS_DEPRECATED vector

While I don't expect the class to disappear very soon, we should be proactive, and remove its usage. We don't want to forget and have to rush it when Kokkos finally removes it.

@bartgol bartgol added Trilinos Stuff related to trilinos Code cleanup labels Nov 29, 2023
@jewatkins
Copy link
Collaborator

I don't think we use it very heavily. Only to carry around a vector of device views. Hopefully there's an easy replacement.

@bartgol
Copy link
Collaborator Author

bartgol commented Nov 30, 2023

I think Kokkos::vector is just a special case of a DualView, so we can probably switch do Kokkos::DualView without too much disruption. And yes, I think we only use it in gather/scatter evaluators.

@ikalash
Copy link
Collaborator

ikalash commented Nov 30, 2023

I guess the errors in the weaver nightlies that started today are unrelated?

https://sems-cdash-son.sandia.gov/cdash/viewBuildError.php?buildid=54850

/.../repos/Trilinos/packages/kokkos/core/src/Kokkos_View.hpp(1319): error: static assertion failed with "Incompatible View copy construction"

Does anyone have any insight into this new error?

@jewatkins
Copy link
Collaborator

yeah that's different. Not sure what happened. I can take a look tomorrow if it happens again.

@ikalash
Copy link
Collaborator

ikalash commented Nov 30, 2023

Thanks @jewatkins that would be great. We can open a new issue, as needed, based on what you find.

@mperego
Copy link
Collaborator

mperego commented Mar 21, 2024

@jewatkins @bartgol @mcarlson801 @kliegeois Anybody willing to take this on?

@jewatkins
Copy link
Collaborator

is it going to be removed soon from trilinos/kokkos?

@mperego
Copy link
Collaborator

mperego commented Mar 21, 2024

Not sure, but probably it won't go away until next major release of Kokkos. However, the warning is kind of annoying and it's a good spring cleaning task.

@jewatkins
Copy link
Collaborator

I'll take a look at this today.

jewatkins added a commit that referenced this issue Mar 22, 2024
jewatkins added a commit that referenced this issue Mar 22, 2024
* Remove Kokkos::vector
 - fix #1019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code cleanup Trilinos Stuff related to trilinos
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants