diff --git a/examples/viz/tree_visualization.cpp b/examples/viz/tree_visualization.cpp index 2d8442e3e..c66a401c4 100644 --- a/examples/viz/tree_visualization.cpp +++ b/examples/viz/tree_visualization.cpp @@ -165,8 +165,7 @@ void viz(std::string const &prefix, std::string const &infile, int n_neighbors) sortPredicatesAlongSpaceFillingCurve(ExecutionSpace{}, ArborX::Experimental::Morton32(), bvh.bounds(), queries); - queries = ArborX::Details::BatchedQueries::applyPermutation( - ExecutionSpace{}, permute, queries); + ArborX::Details::applyPermutation(ExecutionSpace{}, permute, queries); performQueries(prefix + "sorted_", suffix); } diff --git a/src/spatial/detail/ArborX_BatchedQueries.hpp b/src/spatial/detail/ArborX_BatchedQueries.hpp index 78cec8bb9..cf5650149 100644 --- a/src/spatial/detail/ArborX_BatchedQueries.hpp +++ b/src/spatial/detail/ArborX_BatchedQueries.hpp @@ -67,31 +67,6 @@ struct BatchedQueries return sortObjects(space, linear_ordering_indices); } - - // NOTE trailing return type seems required :( - // error: The enclosing parent function ("applyPermutation") for an extended - // __host__ __device__ lambda must not have deduced return type - template - static auto - applyPermutation(ExecutionSpace const &space, - Kokkos::View permute, - Predicates const &v) - -> Kokkos::View - { - auto const n = v.size(); - ARBORX_ASSERT(permute.extent(0) == n); - - Kokkos::View w( - Kokkos::view_alloc(space, Kokkos::WithoutInitializing, - "ArborX::permuted_predicates"), - n); - Kokkos::parallel_for( - "ArborX::BatchedQueries::permute_entries", - Kokkos::RangePolicy(space, 0, n), - KOKKOS_LAMBDA(int i) { w(i) = v(permute(i)); }); - - return w; - } }; } // namespace ArborX::Details