Skip to content

Commit

Permalink
Fix CI issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokop committed Sep 14, 2024
1 parent 8bcb3fa commit f553a85
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
28 changes: 28 additions & 0 deletions src/geometry/ArborX_Box.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,34 @@ struct Box
Details::KokkosExt::ArithmeticTraits::finite_min<float>::value,
Details::KokkosExt::ArithmeticTraits::finite_min<float>::value}};

[[deprecated("Use expand(Box, Box) instead.")]] KOKKOS_FUNCTION Box &
operator+=(Box const &other)
{
using Kokkos::max;
using Kokkos::min;

for (int d = 0; d < 3; ++d)
{
minCorner()[d] = min(minCorner()[d], other.minCorner()[d]);
maxCorner()[d] = max(maxCorner()[d], other.maxCorner()[d]);
}
return *this;
}

[[deprecated("Use expand(Box, Point) instead.")]] KOKKOS_FUNCTION Box &
operator+=(Point<3> const &point)
{
using Kokkos::max;
using Kokkos::min;

for (int d = 0; d < 3; ++d)
{
minCorner()[d] = min(minCorner()[d], point[d]);
maxCorner()[d] = max(maxCorner()[d], point[d]);
}
return *this;
}

// FIXME Temporary workaround until we clarify requirements on the Kokkos side.
#if defined(KOKKOS_ENABLE_OPENMPTARGET) || defined(KOKKOS_ENABLE_SYCL)
private:
Expand Down
2 changes: 1 addition & 1 deletion test/ArborX_BoostRTreeHelpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ performQueries(RTree<Indexable> const &rtree, UserPredicates const &predicates)
static_assert(Kokkos::SpaceAccessibility<typename Predicates::memory_space,
Kokkos::HostSpace>::accessible);

Predicates queries{predicates};
Predicates queries{predicates}; // NOLINT

using Value = typename RTree<Indexable>::value_type;
int const n_queries = queries.size();
Expand Down

0 comments on commit f553a85

Please sign in to comment.