Skip to content

Commit

Permalink
Few more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokop committed Apr 4, 2024
1 parent 9167cf7 commit d43722c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/details/ArborX_DetailsBruteForceImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,11 +206,11 @@ struct BruteForceImpl
radius = heap.top().second;
}
}
while (!heap.empty())
{
callback(predicate, values(heap.top().first));
heap.pop();
}

// Match the logic in TreeTraversal and do the sorting
sortHeap(heap.data(), heap.data() + heap.size(), heap.valueComp());
for (decltype(heap.size()) i = 0; i < heap.size(); ++i)
callback(predicate, values((heap.data() + i)->first));
});
}
};
Expand Down
5 changes: 5 additions & 0 deletions src/details/ArborX_DetailsNearestBufferProvider.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ struct NearestBufferProvider
Kokkos::make_pair(*offset_ptr, *(offset_ptr + 1)));
}

// Enclosing function for an extended __host__ __device__ lambda cannot have
// private or protected access within its class
#ifndef KOKKOS_COMPILER_NVCC
private:
#endif
template <typename ExecutionSpace, typename Predicates>
void allocateBuffer(ExecutionSpace const &space, Predicates const &predicates)
{
Expand Down

0 comments on commit d43722c

Please sign in to comment.