File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
source/pbat/gpu/impl/geometry Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -104,12 +104,13 @@ void RunSweepAndPruneTests()
104
104
gpu::impl::geometry::SweepAndPrune sap{};
105
105
sap.SortAndSweep (
106
106
aabbs,
107
- [nEdges, o = overlaps.Raw ()] PBAT_DEVICE (GpuIndex si, GpuIndex sj) mutable -> void {
108
- if (si < nEdges and sj >= nEdges)
109
- o.Append (OverlapType{si, sj - nEdges});
110
- if (si >= nEdges and sj < nEdges)
111
- o.Append (OverlapType{sj, si - nEdges});
112
- });
107
+ cuda::proclaim_return_type<void >(
108
+ [nEdges, o = overlaps.Raw ()] PBAT_DEVICE (GpuIndex si, GpuIndex sj) mutable {
109
+ if (si < nEdges and sj >= nEdges)
110
+ o.Append (OverlapType{si, sj - nEdges});
111
+ if (si >= nEdges and sj < nEdges)
112
+ o.Append (OverlapType{sj, si - nEdges});
113
+ }));
113
114
std::vector<OverlapType> overlapsCpu = overlaps.Get ();
114
115
// Assert
115
116
for (OverlapType overlap : overlapsCpu)
You can’t perform that action at this time.
0 commit comments