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

Provide ViewCtorProp overload for create_mirror_view_and_copy #5125

Merged

Conversation

masterleinad
Copy link
Contributor

Similar to #5095, #5035 and #4844. #4826 would help remove more fences here.

This pull request provides a ViewCtorProp overload for create_mirror_view_and_copy that also allows specifying an execution space to be used in the allocation and the deep_copy. The existing version is changed to always use an execution space for allocation (but still uses the two-argument deep_copy).

@masterleinad masterleinad force-pushed the view_ctor_prop_create_mirror_view_and_copy branch from 887b62a to f363abb Compare June 20, 2022 18:41
@masterleinad masterleinad marked this pull request as ready for review June 22, 2022 16:35
@crtrott crtrott added the Blocks Promotion Overview issue for release-blocking bugs label Jun 22, 2022
@PhilMiller
Copy link
Contributor

This advances #4792.

Per the description, this'll need some follow-up in the spirit of #4793. Not a reason not to move this forward now.

Copy link
Member

@crtrott crtrott left a comment

Choose a reason for hiding this comment

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

Just not sure about that cast

containers/src/Kokkos_DynamicView.hpp Show resolved Hide resolved
Copy link
Member

@crtrott crtrott left a comment

Choose a reason for hiding this comment

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

Ok its fine, cast is making use of inheritance.

@masterleinad masterleinad force-pushed the view_ctor_prop_create_mirror_view_and_copy branch from 46976fb to 375a21f Compare July 7, 2022 18:23
Copy link
Contributor

@JBludau JBludau left a comment

Choose a reason for hiding this comment

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

Looks reasonable, although the change to TEST_EXECSPACE in 6ce5a9 could be done in a separate pr (including other tests in containers that might benefit)

@crtrott crtrott merged commit c704edc into kokkos:develop Jul 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Blocks Promotion Overview issue for release-blocking bugs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants