Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokop committed Sep 24, 2024
1 parent c314080 commit 7559673
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions examples/distributed_tree/distributed_knn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* *
* SPDX-License-Identifier: BSD-3-Clause *
****************************************************************************/

#include <ArborX.hpp>

#include <Kokkos_Core.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
* SPDX-License-Identifier: BSD-3-Clause *
****************************************************************************/

#ifndef ARBORX_PAIR_INDEX_RANK_HPP
#define ARBORX_PAIR_INDEX_RANK_HPP
#ifndef ARBORX_TEST_PAIR_INDEX_RANK_HPP
#define ARBORX_TEST_PAIR_INDEX_RANK_HPP

#include <Kokkos_Macros.hpp>

#include <boost/test/tools/detail/print_helper.hpp>

#include <iostream>

namespace ArborX
namespace ArborXTest
{

struct PairIndexRank
Expand All @@ -40,15 +40,15 @@ struct PairIndexRank
}
};

} // namespace ArborX
} // namespace ArborXTest

namespace boost::test_tools::tt_detail
{

template <>
struct print_log_value<ArborX::PairIndexRank>
struct print_log_value<ArborXTest::PairIndexRank>
{
void operator()(std::ostream &os, ArborX::PairIndexRank const &p)
void operator()(std::ostream &os, ArborXTest::PairIndexRank const &p)
{
os << '(' << p.index << ',' << p.rank << ')';
}
Expand Down
2 changes: 1 addition & 1 deletion test/ArborX_BoostRTreeHelpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ performQueries(RTree<Indexable> const &rtree, UserPredicates const &predicates)
#ifdef ARBORX_ENABLE_MPI
template <typename Indexable, typename InputView,
typename OutputView1 =
Kokkos::View<ArborX::PairIndexRank *, Kokkos::HostSpace>,
Kokkos::View<ArborXTest::PairIndexRank *, Kokkos::HostSpace>,
typename OutputView2 = Kokkos::View<int *, Kokkos::HostSpace>>
static std::tuple<OutputView2, OutputView1>
performQueries(ParallelRTree<Indexable> const &rtree, InputView const &queries)
Expand Down
4 changes: 2 additions & 2 deletions test/Search_UnitTestHelpers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ auto query(ExecutionSpace const &exec_space, Tree const &tree,
{
using memory_space = typename Tree::memory_space;
#ifdef ARBORX_ENABLE_MPI
using value_type =
std::conditional_t<is_distributed<Tree>{}, ArborX::PairIndexRank, int>;
using value_type = std::conditional_t<is_distributed<Tree>{},
ArborXTest::PairIndexRank, int>;
#else
using value_type = int;
#endif
Expand Down
2 changes: 1 addition & 1 deletion test/tstDistributedTreeNearest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#define BOOST_TEST_MODULE DistributedTree

using ArborX::PairIndexRank;
using ArborXTest::PairIndexRank;

struct PairRankIndex
{
Expand Down
2 changes: 1 addition & 1 deletion test/tstDistributedTreeSpatial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

namespace tt = boost::test_tools;

using ArborX::PairIndexRank;
using ArborXTest::PairIndexRank;

BOOST_AUTO_TEST_CASE_TEMPLATE(hello_world_spatial, DeviceType,
ARBORX_DEVICE_TYPES)
Expand Down

0 comments on commit 7559673

Please sign in to comment.