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

inconsistent default size type between CrsMatrix and StaticCrsGraph #2336

Open
maartenarnst opened this issue Sep 11, 2024 · 2 comments
Open

Comments

@maartenarnst
Copy link

@brian-kelley
@romintomasetti

In the following PR:

the default size types of KokkosSparse::CrsMatrix and several other matrix types were changed to default_size_type. This is typically int or size_t depending on the configuration of Kokkos-kernels.

However, in Kokkos::StaticCrsGraph, the default size type is taken from a ViewTraits instance. Typically, that size type is in turn a size type of a space, and it need not be int or size_t.

The issue is thus that these default size types are not necessarily the same. And because KokkosSparse::CrsMatrix and Kokkos::StaticCrsGraph are so interrelated, this discrepancy can lead to problems when using eg. the KokkosSparse::CrsMatrix constructor that takes a Kokkos::StaticCrsGraph among its arguments.

This issue is thus a suggestion to consider whether further consistency across the size types may be worth pursuing.

@maartenarnst
Copy link
Author

@lucbv

Looks like it will be solved :)

@lucbv
Copy link
Contributor

lucbv commented Sep 11, 2024

Yes, it was good timing you reminded me about this, I was able to "jump on it" effectively during the meeting.
Since we are the biggest user of this container I think it is reasonable to move it : )

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

No branches or pull requests

2 participants