Skip to content

Commit

Permalink
create CUDA warning
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Apr 20, 2020
1 parent d439146 commit fb23475
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions test/tstLinearBVH.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -432,8 +432,7 @@ struct CustomInlineCallbackSpatialPredicate
Kokkos::View<ArborX::Point *, DeviceType> points;
ArborX::Point const origin = {{0., 0., 0.}};
template <typename Query, typename Insert>
KOKKOS_FUNCTION void operator()(Query const &, int index,
Insert const &insert) const
void operator()(Query const &, int index, Insert const &insert) const
{
float const distance_to_origin =
ArborX::Details::distance(points(index), origin);
Expand Down Expand Up @@ -474,8 +473,8 @@ struct CustomInlineCallbackNearestPredicate
{
using tag = ArborX::Details::InlineCallbackTag;
template <typename Query, typename Insert>
KOKKOS_FUNCTION void operator()(Query const &, int index, float distance,
Insert const &insert) const
void operator()(Query const &, int index, float distance,
Insert const &insert) const
{
insert({index, (float)distance});
}
Expand Down Expand Up @@ -590,8 +589,7 @@ struct CustomInlineCallbackAttachmentSpatialPredicate
Kokkos::View<ArborX::Point *, DeviceType> points;
ArborX::Point const origin = {{0., 0., 0.}};
template <typename Query, typename Insert>
KOKKOS_FUNCTION void operator()(Query const &query, int index,
Insert const &insert) const
void operator()(Query const &query, int index, Insert const &insert) const
{
float const distance_to_origin =
ArborX::Details::distance(points(index), origin);
Expand Down Expand Up @@ -635,8 +633,8 @@ struct CustomInlineCallbackAttachmentNearestPredicate
{
using tag = ArborX::Details::InlineCallbackTag;
template <typename Query, typename Insert>
KOKKOS_FUNCTION void operator()(Query const &query, int index, float distance,
Insert const &insert) const
void operator()(Query const &query, int index, float distance,
Insert const &insert) const
{
auto data = ArborX::getData(query);
insert({index, data + (float)distance});
Expand Down

0 comments on commit fb23475

Please sign in to comment.