Skip to content

Commit b7e99d9

Browse files
committed
Attempt to fix cuda compilation error with extended device lambdas
1 parent fd9830e commit b7e99d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/pbat/gpu/impl/geometry/SweepAndPrune.cu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ void SweepAndPrune::Reserve(std::size_t nPrimitives)
2727
#include "pbat/gpu/impl/common/SynchronizedList.cuh"
2828
#include "pbat/math/linalg/mini/Mini.h"
2929

30+
#include <cuda/functional>
3031
#include <cuda/std/utility>
3132
#include <doctest/doctest.h>
3233
#include <unordered_set>
@@ -103,7 +104,7 @@ void RunSweepAndPruneTests()
103104
gpu::impl::geometry::SweepAndPrune sap{};
104105
sap.SortAndSweep(
105106
aabbs,
106-
[nEdges, o = overlaps.Raw()] PBAT_DEVICE(GpuIndex si, GpuIndex sj) mutable {
107+
[nEdges, o = overlaps.Raw()] PBAT_DEVICE(GpuIndex si, GpuIndex sj) mutable -> void {
107108
if (si < nEdges and sj >= nEdges)
108109
o.Append(OverlapType{si, sj - nEdges});
109110
if (si >= nEdges and sj < nEdges)

0 commit comments

Comments
 (0)