Skip to content

Commit

Permalink
Add KOKKOS_FUNCTION to indexable_get()
Browse files Browse the repository at this point in the history
  • Loading branch information
Rombur committed Jan 24, 2024
1 parent 410efb6 commit 87b279b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/ArborX_BruteForce.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ class BruteForce
std::forward<View>(view), std::forward<Args>(args)...);
}

auto const &indexable_get() const { return _indexable_getter; }
KOKKOS_FUNCTION auto const &indexable_get() const
{
return _indexable_getter;
}

private:
size_type _size{0};
Expand Down
5 changes: 4 additions & 1 deletion src/ArborX_LinearBVH.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ class BoundingVolumeHierarchy
tree_traversal(predicate);
}

auto const &indexable_get() const { return _indexable_getter; }
KOKKOS_FUNCTION auto const &indexable_get() const
{
return _indexable_getter;
}

private:
friend struct Details::HappyTreeFriends;
Expand Down

0 comments on commit 87b279b

Please sign in to comment.