Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow non device type template parameter for output views in BVH::query() #271

Merged
merged 15 commits into from
Apr 20, 2020
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Kokkos::View<int *, {DeviceType -> Kokkos::Cuda}> in example CUDA acc…
…ess traits
  • Loading branch information
dalg24 committed Apr 17, 2020
commit a2e80a4f5be15a4e636249eba0a0023d226e7efe
5 changes: 2 additions & 3 deletions examples/access_traits/example_cuda_access_traits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,8 @@ int main(int argc, char *argv[])
Kokkos::Cuda cuda{stream};
ArborX::BVH<Kokkos::CudaSpace> bvh{cuda, PointCloud{d_a, d_a, d_a, N}};

using DeviceType = Kokkos::Cuda::device_type;
Kokkos::View<int *, DeviceType> indices("indices", 0);
Kokkos::View<int *, DeviceType> offset("offset", 0);
Kokkos::View<int *, Kokkos::Cuda> indices("indices", 0);
aprokop marked this conversation as resolved.
Show resolved Hide resolved
Kokkos::View<int *, Kokkos::Cuda> offset("offset", 0);
bvh.query(cuda, Spheres{d_a, d_a, d_a, d_a, N}, indices, offset);

Kokkos::parallel_for(Kokkos::RangePolicy<Kokkos::Cuda>(cuda, 0, N),
Expand Down