-
Notifications
You must be signed in to change notification settings - Fork 50
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
Fix BovWriter #758
base: master
Are you sure you want to change the base?
Fix BovWriter #758
Conversation
array.label(), reorder_space ); | ||
reorderView( owned_view, owned_subview, reorder_space, ExecutionSpace() ); | ||
|
||
reorderView( owned_view, owned_subview, reorder_space, Kokkos::DefaultHostExecutionSpace{} ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see anything that would stop us from reordering on device, then mirroring after this kernel - what am I missing?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@abisner I have segment fault error when encounter node_halo->gather
and Grid_Halo
CUDA test fails as well. Do you have same issue on summit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kwitaechong that may be unrelated - this should only affect the grid output tests
@@ -267,7 +267,9 @@ void writeTimeStep( ExecutionSpace, const std::string& prefix, | |||
local_space_max.back() = owned_extents.back(); | |||
IndexSpace<num_space_dim + 1> local_space( local_space_min, | |||
local_space_max ); | |||
auto owned_subview = createSubview( array.view(), local_space ); | |||
|
|||
auto array_host = Kokkos::create_mirror_view_and_copy(Kokkos::HostSpace{}, array.view()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you try replacing this with a fence instead?
Adds missing host mirror copy.
Closes #745.