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

Adopt Kokkos::StaticCrsGraph from "Core" and move Static{Ccs,Crs}Graph to namespace KokkosSparse:: #2419

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

dalg24
Copy link
Member

@dalg24 dalg24 commented Nov 6, 2024

This PR implements what we agreed on, that is Kokkos "Core" is deprecating Kokkos::StaticCrsGraph and we transition it to Kokkos Kernels into KokkosSparse::.

On 2nd thought we decided to give up on raising deprecation warnings because it was too tricky to guarantee same symbols and not emit diagnostics when the KokkosSparse:: versions are used.

* Moved Static{Ccs,Crs}Graph to namespace KokkosSparse and into their
  own new header files
* Deprecate symbols in Kokkos namespace
* CRS counterpart used to come from the Containers subpackage in Kokkos
  "Core" but now is transitioned to Kokkos Kernels.

Signed-off-by: Damien L-G <[email protected]>
Signed-off-by: Damien L-G <[email protected]>
Comment on lines +31 to +34
using Kokkos::create_staticcrsgraph;
using Kokkos::GraphRowViewConst;
using Kokkos::maximum_entry;
using Kokkos::StaticCrsGraph;
Copy link
Member Author

Choose a reason for hiding this comment

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

I am not sure what to do about create_mirror[_view]
I certainly want to pull all overloads from Kokkos into KokkosSparse::

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think Kokkos provides create_mirror... functions for any other non-view containers, right? Shall we just be consistent with that and move them into KokkosSparse namespace? Kokkos can make the suggestion in the deprecation message.

Copy link
Contributor

@cwpearson cwpearson left a comment

Choose a reason for hiding this comment

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

Approving to get some CI going


} /* namespace TestStaticCrsGraph */

TEST(NotSureWhatGoesThere, staticcrsgraph) {
Copy link
Member Author

Choose a reason for hiding this comment

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

Need to fix this before we merge
Let me know how you would like to call it

Copy link
Contributor

Choose a reason for hiding this comment

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

We just put TestCategory and it gets set in e.g. test_common/Test_HIP.hpp for different backends.

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.

2 participants