From 7559673f8e4b804eff9a9d39d9b351306dbb662c Mon Sep 17 00:00:00 2001 From: Andrey Prokopenko Date: Tue, 24 Sep 2024 11:59:01 -0400 Subject: [PATCH] Address review comments --- examples/distributed_tree/distributed_knn.cpp | 1 + ...airIndexRank.hpp => ArborXTest_PairIndexRank.hpp} | 12 ++++++------ test/ArborX_BoostRTreeHelpers.hpp | 2 +- test/Search_UnitTestHelpers.hpp | 4 ++-- test/tstDistributedTreeNearest.cpp | 2 +- test/tstDistributedTreeSpatial.cpp | 2 +- 6 files changed, 12 insertions(+), 11 deletions(-) rename test/{ArborX_PairIndexRank.hpp => ArborXTest_PairIndexRank.hpp} (86%) diff --git a/examples/distributed_tree/distributed_knn.cpp b/examples/distributed_tree/distributed_knn.cpp index 2ec43cf1f..fa789c0d8 100644 --- a/examples/distributed_tree/distributed_knn.cpp +++ b/examples/distributed_tree/distributed_knn.cpp @@ -8,6 +8,7 @@ * * * SPDX-License-Identifier: BSD-3-Clause * ****************************************************************************/ + #include #include diff --git a/test/ArborX_PairIndexRank.hpp b/test/ArborXTest_PairIndexRank.hpp similarity index 86% rename from test/ArborX_PairIndexRank.hpp rename to test/ArborXTest_PairIndexRank.hpp index 0250a552d..fa91d6523 100644 --- a/test/ArborX_PairIndexRank.hpp +++ b/test/ArborXTest_PairIndexRank.hpp @@ -9,8 +9,8 @@ * 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 @@ -18,7 +18,7 @@ #include -namespace ArborX +namespace ArborXTest { struct PairIndexRank @@ -40,15 +40,15 @@ struct PairIndexRank } }; -} // namespace ArborX +} // namespace ArborXTest namespace boost::test_tools::tt_detail { template <> -struct print_log_value +struct print_log_value { - void operator()(std::ostream &os, ArborX::PairIndexRank const &p) + void operator()(std::ostream &os, ArborXTest::PairIndexRank const &p) { os << '(' << p.index << ',' << p.rank << ')'; } diff --git a/test/ArborX_BoostRTreeHelpers.hpp b/test/ArborX_BoostRTreeHelpers.hpp index 4b9293e47..9e02e3d02 100644 --- a/test/ArborX_BoostRTreeHelpers.hpp +++ b/test/ArborX_BoostRTreeHelpers.hpp @@ -221,7 +221,7 @@ performQueries(RTree const &rtree, UserPredicates const &predicates) #ifdef ARBORX_ENABLE_MPI template , + Kokkos::View, typename OutputView2 = Kokkos::View> static std::tuple performQueries(ParallelRTree const &rtree, InputView const &queries) diff --git a/test/Search_UnitTestHelpers.hpp b/test/Search_UnitTestHelpers.hpp index 80ea4e5bf..dc159e97c 100644 --- a/test/Search_UnitTestHelpers.hpp +++ b/test/Search_UnitTestHelpers.hpp @@ -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{}, ArborX::PairIndexRank, int>; + using value_type = std::conditional_t{}, + ArborXTest::PairIndexRank, int>; #else using value_type = int; #endif diff --git a/test/tstDistributedTreeNearest.cpp b/test/tstDistributedTreeNearest.cpp index 5a72ee6a9..ab79229ee 100644 --- a/test/tstDistributedTreeNearest.cpp +++ b/test/tstDistributedTreeNearest.cpp @@ -23,7 +23,7 @@ #define BOOST_TEST_MODULE DistributedTree -using ArborX::PairIndexRank; +using ArborXTest::PairIndexRank; struct PairRankIndex { diff --git a/test/tstDistributedTreeSpatial.cpp b/test/tstDistributedTreeSpatial.cpp index 2c2e19b79..11fb8db50 100644 --- a/test/tstDistributedTreeSpatial.cpp +++ b/test/tstDistributedTreeSpatial.cpp @@ -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)