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

Avoid forcing matching execution spaces in BinSort constructor and sort() #4919

Merged
merged 3 commits into from
Apr 4, 2022

Conversation

masterleinad
Copy link
Contributor

Fixes #4891. Having an execution_space alias forces that to be considered when executing functors. This is not what we want.
This pull requests just renames execution_space to exec_space.

@janciesko janciesko self-requested a review March 30, 2022 23:51
template <class ExecutionSpace = execution_space>
void create_permute_vector(const ExecutionSpace& exec = execution_space{}) {
template <class ExecutionSpace = exec_space>
void create_permute_vector(const ExecutionSpace& exec = exec_space{}) {
const size_t len = range_end - range_begin;
Copy link
Member

Choose a reason for hiding this comment

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

can we make a check here that (i.e. static_assert) that ExecutionSpace can access the memory space of the view?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@masterleinad
Copy link
Contributor Author

Retest this please.

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.

None yet

4 participants