From 1648842a8d0b9252c054eb21faa930f47e73deee Mon Sep 17 00:00:00 2001 From: Andrey Prokopenko Date: Mon, 14 Oct 2024 10:39:56 -0400 Subject: [PATCH] Add deduction guides for BVH and BruteForce taking in indexable getter --- src/spatial/ArborX_BruteForce.hpp | 11 +++++++++++ src/spatial/ArborX_LinearBVH.hpp | 12 ++++++++++++ 2 files changed, 23 insertions(+) diff --git a/src/spatial/ArborX_BruteForce.hpp b/src/spatial/ArborX_BruteForce.hpp index eefd8c4ea..09dd2b52b 100644 --- a/src/spatial/ArborX_BruteForce.hpp +++ b/src/spatial/ArborX_BruteForce.hpp @@ -136,6 +136,17 @@ KOKKOS_FUNCTION typename Details::AccessValues::memory_space, typename Details::AccessValues::value_type>; +template +#if KOKKOS_VERSION >= 40400 +KOKKOS_DEDUCTION_GUIDE +#else +KOKKOS_FUNCTION +#endif + BruteForce(ExecutionSpace, Values, IndexableGetter) -> BruteForce< + typename Details::AccessValues::memory_space, + typename Details::AccessValues::value_type, + IndexableGetter>; + template template diff --git a/src/spatial/ArborX_LinearBVH.hpp b/src/spatial/ArborX_LinearBVH.hpp index e6f2cafff..29fa18fd4 100644 --- a/src/spatial/ArborX_LinearBVH.hpp +++ b/src/spatial/ArborX_LinearBVH.hpp @@ -178,6 +178,18 @@ KOKKOS_FUNCTION typename Details::AccessValues::memory_space, typename Details::AccessValues::value_type>; +template +#if KOKKOS_VERSION >= 40400 +KOKKOS_DEDUCTION_GUIDE +#else +KOKKOS_FUNCTION +#endif + BoundingVolumeHierarchy(ExecutionSpace, Values, IndexableGetter) + -> BoundingVolumeHierarchy< + typename Details::AccessValues::memory_space, + typename Details::AccessValues::value_type, + IndexableGetter>; + template