Skip to content

Commit

Permalink
Get rid of LegacyDefaultCallback in benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokop committed Apr 8, 2024
1 parent e474b9e commit b257854
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
11 changes: 5 additions & 6 deletions benchmarks/brute_force_vs_bvh/brute_force_vs_bvh_timpl.hpp
Expand Up @@ -93,10 +93,10 @@ static void run_fp(int nprimitives, int nqueries, int nrepeats)
ArborX::PairValueIndex<Point>>
bvh{space, ArborX::Experimental::attach_indices(primitives)};

Kokkos::View<int *, ExecutionSpace> indices("Benchmark::indices_ref", 0);
Kokkos::View<unsigned *, ExecutionSpace> indices("Benchmark::indices_ref",
0);
Kokkos::View<int *, ExecutionSpace> offset("Benchmark::offset_ref", 0);
bvh.query(space, predicates, ArborX::Details::LegacyDefaultCallback{},
indices, offset);
bvh.query(space, predicates, indices, offset);

space.fence();
double time = timer.seconds();
Expand All @@ -112,10 +112,9 @@ static void run_fp(int nprimitives, int nqueries, int nrepeats)
ArborX::BruteForce<MemorySpace, ArborX::PairValueIndex<Point>> brute{
space, ArborX::Experimental::attach_indices(primitives)};

Kokkos::View<int *, ExecutionSpace> indices("Benchmark::indices", 0);
Kokkos::View<unsigned *, ExecutionSpace> indices("Benchmark::indices", 0);
Kokkos::View<int *, ExecutionSpace> offset("Benchmark::offset", 0);
brute.query(space, predicates, ArborX::Details::LegacyDefaultCallback{},
indices, offset);
brute.query(space, predicates, indices, offset);

space.fence();
double time = timer.seconds();
Expand Down
5 changes: 2 additions & 3 deletions benchmarks/dbscan/ArborX_DBSCANVerification.hpp
Expand Up @@ -317,10 +317,9 @@ bool verifyDBSCAN(ExecutionSpace exec_space, Primitives const &primitives,
auto const predicates = ArborX::Experimental::attach_indices(
ArborX::Experimental::make_intersects(points, eps));

Kokkos::View<int *, MemorySpace> indices("ArborX::DBSCAN::indices", 0);
Kokkos::View<unsigned *, MemorySpace> indices("ArborX::DBSCAN::indices", 0);
Kokkos::View<int *, MemorySpace> offset("ArborX::DBSCAN::offset", 0);
ArborX::query(bvh, exec_space, predicates,
ArborX::Details::LegacyDefaultCallback{}, indices, offset);
ArborX::query(bvh, exec_space, predicates, indices, offset);

auto passed = Details::verifyClusters(exec_space, indices, offset, labels,
core_min_size);
Expand Down

0 comments on commit b257854

Please sign in to comment.