Skip to content

Commit

Permalink
Change capture for inner lambda
Browse files Browse the repository at this point in the history
Capture by reference is working on my workstation, but fails on Summit
with
arborx/src/details/ArborX_DetailsTreeTraversal.hpp:102:7: internal compiler error: in maybe_undo_parenthesized_ref, at cp/semantics.c:1739
                                  if (i < real_predicates_in_team) {

This is reminiscent of kokkos/kokkos-kernels#349.
  • Loading branch information
aprokop committed May 22, 2020
1 parent 544dc1d commit e24562d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/details/ArborX_DetailsTreeTraversal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ struct TreeTraversal<BVH, Predicates, Callback, SpatialPredicateTag>
real_predicates_end - real_predicates_begin;

Kokkos::parallel_for(Kokkos::TeamThreadRange(team_member, team_size),
[&](int const i) {
[=](int const i) {
if (i < real_predicates_in_team)
tree_traversal(real_predicates_begin + i);
});
Expand Down

0 comments on commit e24562d

Please sign in to comment.