Skip to content

Commit

Permalink
Fix fence being called unexpectedly
Browse files Browse the repository at this point in the history
  • Loading branch information
pzehner committed Mar 12, 2024
1 parent 571f340 commit 978d9d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/Kokkos_CopyViews.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3632,8 +3632,10 @@ auto create_mirror_view_and_copy(

if constexpr(mirror_view_type::is_same){
// same behavior as deep_copy(src, src)
fence(
"Kokkos::create_mirror_view_and_copy: fence before returning src view");
if constexpr (!alloc_prop_input::has_execution_space)
fence(
"Kokkos::create_mirror_view_and_copy: fence before returning src view");

return src;
} else {

Expand Down

0 comments on commit 978d9d5

Please sign in to comment.