Skip to content
Snippets Groups Projects
Commit cc2610e1 authored by Lebrun-Grandie, Damien's avatar Lebrun-Grandie, Damien
Browse files

Rename Traits::Access<T,Tag>::{MemorySpace -> memory_space}

parent a062fb02
No related branches found
No related tags found
1 merge request!115Refactor access traits
This commit is part of merge request !115. Comments created here will be created in the context of that merge request.
......@@ -219,7 +219,7 @@ inline void assignMortonCodesDispatch(BoxTag, Primitives const &primitives,
Box const &scene_bounding_box)
{
using Access = typename Traits::Access<Primitives, Traits::PrimitivesTag>;
using ExecutionSpace = typename Access::MemorySpace::execution_space;
using ExecutionSpace = typename Access::memory_space::execution_space;
auto const n = Access::size(primitives);
Kokkos::parallel_for(ARBORX_MARK_REGION("assign_morton_codes"),
Kokkos::RangePolicy<ExecutionSpace>(0, n),
......@@ -238,7 +238,7 @@ inline void assignMortonCodesDispatch(PointTag, Primitives const &primitives,
Box const &scene_bounding_box)
{
using Access = typename Traits::Access<Primitives, Traits::PrimitivesTag>;
using ExecutionSpace = typename Access::MemorySpace::execution_space;
using ExecutionSpace = typename Access::memory_space::execution_space;
auto const n = Access::size(primitives);
Kokkos::parallel_for(
ARBORX_MARK_REGION("assign_morton_codes"),
......@@ -273,7 +273,7 @@ inline void initializeLeafNodesDispatch(BoxTag, Primitives const &primitives,
Nodes leaf_nodes)
{
using Access = typename Traits::Access<Primitives, Traits::PrimitivesTag>;
using ExecutionSpace = typename Access::MemorySpace::execution_space;
using ExecutionSpace = typename Access::memory_space::execution_space;
auto const n = Access::size(primitives);
Kokkos::parallel_for(
ARBORX_MARK_REGION("initialize_leaf_nodes"),
......@@ -291,7 +291,7 @@ inline void initializeLeafNodesDispatch(PointTag, Primitives const &primitives,
Nodes leaf_nodes)
{
using Access = typename Traits::Access<Primitives, Traits::PrimitivesTag>;
using ExecutionSpace = typename Access::MemorySpace::execution_space;
using ExecutionSpace = typename Access::memory_space::execution_space;
auto const n = Access::size(primitives);
Kokkos::parallel_for(
ARBORX_MARK_REGION("initialize_leaf_nodes"),
......
......@@ -51,7 +51,7 @@ struct Access<View, TTag,
static typename View::size_type size(View const &v) { return v.extent(0); }
using Tag = typename Details::Tag<typename View::value_type>::type;
using MemorySpace = typename View::memory_space;
using memory_space = typename View::memory_space;
};
template <typename View, typename TTag>
......@@ -68,7 +68,7 @@ struct Access<View, TTag,
static typename View::size_type size(View const &v) { return v.extent(0); }
using Tag = Details::PointTag;
using MemorySpace = typename View::memory_space;
using memory_space = typename View::memory_space;
};
} // namespace Traits
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment