Skip to content

Commit 740ef7f

Browse files
committed
Update to ArborX 2.0
1 parent 896f800 commit 740ef7f

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ jobs:
162162
cxx: 'g++'
163163
backend: 'OPENMP'
164164
cmake_build_type: 'Release'
165-
kokkos_ver: '4.3.00'
166-
arborx: 'fee3d777c0325a90ab50671fca69f2dc98f2a882'
165+
kokkos_ver: '4.6.00'
166+
arborx: 'v2.0'
167167
heffte: 'OFF'
168168
hypre: 'OFF'
169169
coverage: 'OFF'
@@ -244,8 +244,8 @@ jobs:
244244
cxx: 'g++'
245245
backend: 'OPENMP'
246246
cmake_build_type: 'Debug'
247-
kokkos_ver: '4.3.00'
248-
arborx: 'fee3d777c0325a90ab50671fca69f2dc98f2a882'
247+
kokkos_ver: '4.5.00'
248+
arborx: 'v2.0'
249249
heffte: 'FFTW'
250250
hypre: 'HYPRE'
251251
liball: 'libALL'

core/src/Cabana_Experimental_NeighborList.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ namespace ArborX
107107
//! Neighbor access trait for Cabana slice and/or Kokkos View.
108108
template <typename Positions>
109109
struct AccessTraits<Positions,
110-
#if ARBORX_VERSION < 10799
110+
#if ARBORX_VERSION < 20000
111111
PrimitivesTag,
112112
#endif
113113
std::enable_if_t<Cabana::is_slice<Positions>{} ||
@@ -133,7 +133,7 @@ struct AccessTraits<Positions,
133133
//! Neighbor access trait.
134134
template <typename Positions>
135135
struct AccessTraits<Cabana::Experimental::Impl::SubPositionsAndRadius<Positions>
136-
#if ARBORX_VERSION < 10799
136+
#if ARBORX_VERSION < 20000
137137
,
138138
PredicatesTag
139139
#endif
@@ -156,7 +156,7 @@ struct AccessTraits<Cabana::Experimental::Impl::SubPositionsAndRadius<Positions>
156156
{
157157
assert( i < size( x ) );
158158
auto const point = AccessTraits<typename PositionLike::positions_type
159-
#if ARBORX_VERSION < 10799
159+
#if ARBORX_VERSION < 20000
160160
,
161161
PrimitivesTag
162162
#endif
@@ -198,7 +198,7 @@ struct CollisionFilter<HalfNeighborTag>
198198
template <typename Tag>
199199
struct NeighborDiscriminatorCallback
200200
{
201-
#if ARBORX_VERSION >= 10799
201+
#if ARBORX_VERSION >= 20000
202202
template <typename Predicate, typename Geometry, typename OutputFunctor>
203203
KOKKOS_FUNCTION void
204204
operator()( Predicate const& predicate,
@@ -232,7 +232,7 @@ template <typename Counts, typename Tag>
232232
struct NeighborDiscriminatorCallback2D_FirstPass
233233
{
234234
Counts counts;
235-
#if ARBORX_VERSION >= 10799
235+
#if ARBORX_VERSION >= 20000
236236
template <typename Predicate, typename Geometry>
237237
KOKKOS_FUNCTION void
238238
operator()( Predicate const& predicate,
@@ -265,7 +265,7 @@ struct NeighborDiscriminatorCallback2D_FirstPass_BufferOptimization
265265
{
266266
Counts counts;
267267
Neighbors neighbors;
268-
#if ARBORX_VERSION >= 10799
268+
#if ARBORX_VERSION >= 20000
269269
template <typename Predicate, typename Geometry>
270270
KOKKOS_FUNCTION void
271271
operator()( Predicate const& predicate,
@@ -316,7 +316,7 @@ struct NeighborDiscriminatorCallback2D_SecondPass
316316
{
317317
Counts counts;
318318
Neighbors neighbors;
319-
#if ARBORX_VERSION >= 10799
319+
#if ARBORX_VERSION >= 20000
320320
template <typename Predicate, typename Geometry>
321321
KOKKOS_FUNCTION void
322322
operator()( Predicate const& predicate,
@@ -404,7 +404,7 @@ auto makeNeighborList( ExecutionSpace space, Tag, Positions const& positions,
404404

405405
using memory_space = typename Positions::memory_space;
406406

407-
#if ARBORX_VERSION >= 10799
407+
#if ARBORX_VERSION >= 20000
408408
ArborX::BoundingVolumeHierarchy bvh(
409409
space, ArborX::Experimental::attach_indices<int>( positions ) );
410410
#else
@@ -534,7 +534,7 @@ auto make2DNeighborList( ExecutionSpace space, Tag, Positions const& positions,
534534

535535
using memory_space = typename Positions::memory_space;
536536

537-
#if ARBORX_VERSION >= 10799
537+
#if ARBORX_VERSION >= 20000
538538
ArborX::BoundingVolumeHierarchy bvh(
539539
space, ArborX::Experimental::attach_indices<int>( positions ) );
540540
#else
@@ -546,7 +546,7 @@ auto make2DNeighborList( ExecutionSpace space, Tag, Positions const& positions,
546546

547547
auto const n_queries =
548548
ArborX::AccessTraits<std::remove_const_t<decltype( predicates )>
549-
#if ARBORX_VERSION < 10799
549+
#if ARBORX_VERSION < 20000
550550
,
551551
ArborX::PredicatesTag
552552
#endif

0 commit comments

Comments
 (0)