diff options
author | 2019-11-11 21:10:12 -0800 | |
---|---|---|
committer | 2019-11-11 21:10:12 -0800 | |
commit | 25c55bf3ecd7c6ca2d799fd55244e1a8b5f70970 (patch) | |
tree | b431072669a90815d62db56de3cab3ef61c54210 /Source/Particles/Sorting/SortingUtils.H | |
parent | 822fe53f6c98041f1db92f5e0002d3211419330c (diff) | |
download | WarpX-25c55bf3ecd7c6ca2d799fd55244e1a8b5f70970.tar.gz WarpX-25c55bf3ecd7c6ca2d799fd55244e1a8b5f70970.tar.zst WarpX-25c55bf3ecd7c6ca2d799fd55244e1a8b5f70970.zip |
Cuda -> Gpu according to AMReX change
Diffstat (limited to 'Source/Particles/Sorting/SortingUtils.H')
-rw-r--r-- | Source/Particles/Sorting/SortingUtils.H | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Particles/Sorting/SortingUtils.H b/Source/Particles/Sorting/SortingUtils.H index 28a1b73b7..80eaaf9cb 100644 --- a/Source/Particles/Sorting/SortingUtils.H +++ b/Source/Particles/Sorting/SortingUtils.H @@ -2,7 +2,6 @@ #define WARPX_PARTICLES_SORTING_SORTINGUTILS_H_ #include <WarpXParticleContainer.H> -#include <AMReX_CudaContainers.H> #include <AMReX_Gpu.H> #ifdef AMREX_USE_GPU #include <thrust/partition.h> @@ -43,7 +42,7 @@ ForwardIterator stablePartition(ForwardIterator const index_begin, // On GPU: Use thrust int const* AMREX_RESTRICT predicate_ptr = predicate.dataPtr(); ForwardIterator const sep = thrust::stable_partition( - thrust::cuda::par(amrex::Cuda::The_ThrustCachedAllocator()), + thrust::cuda::par(amrex::Gpu::The_ThrustCachedAllocator()), index_begin, index_end, [predicate_ptr] AMREX_GPU_DEVICE (long i) { return predicate_ptr[i]; } ); |