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

Implement fill_random for DynRankView #4763

Merged
merged 8 commits into from
Feb 15, 2022

Conversation

masterleinad
Copy link
Contributor

Fixes #3437.

@masterleinad masterleinad linked an issue Feb 7, 2022 that may be closed by this pull request
std::to_string(rank(a)));
}
}

Copy link
Contributor

Choose a reason for hiding this comment

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

If I could make this variadic in the Viewish arguments, then it could be used for the non-scalar deep_copy implementations, too. It would then have to handle mixes of View and DynRankView. With C++17, that could just be a folded logical-or over the condition in the enable_if.

@PhilMiller
Copy link
Contributor

The putative use case for the switch(rank) wrapper in EMPIRE could be done away with entirely, so there's no impetus right now to expose the helper outside namespace Kokkos::Impl

@crtrott
Copy link
Member

crtrott commented Feb 9, 2022

I was wondering about perf impact, but the original implementation is SOOO shitty perf wise that it doesn't matter I guess ....

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.

DynRankView is not working with kokkos random.
4 participants