Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fnrizzi committed Sep 11, 2023
1 parent eb8ee28 commit e3a608b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions algorithms/src/std_algorithms/impl/Kokkos_CopyIf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ KOKKOS_FUNCTION OutputIterator copy_if_team_impl(
}
},
count);
// no barrier needed since single above broadcasts to all members

return d_first + count;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ remove_if_team_impl(const TeamHandleType& teamHandle, IteratorType first,
},
count);
}
// no barrier needed since single above broadcasts to all members

return first + num_elements - remove_count;
}
Expand Down
1 change: 1 addition & 0 deletions algorithms/src/std_algorithms/impl/Kokkos_UniqueCopy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ KOKKOS_FUNCTION OutputIterator unique_copy_team_impl(
d_first[lcount++] = first[num_elements - 1];
},
count);
// no barrier needed since single above broadcasts to all members

// return the correct iterator: we need +1 here because we need to
// return iterator to the element past the last element copied
Expand Down

0 comments on commit e3a608b

Please sign in to comment.