You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Depending on #763 and #764. With the help of these primitive and data structures, I posturizes that the kernel should be parallelized on 1-segment per thread and iterate on the multilinestring in the other multilinestring.
Kernel pseudo code without needing to write indices
__global__ voidintersection_count_kernel(range1, range2, output):
tidx = get_threadidx()
Segment seg1 = range1.segment(tidx)
For (mls : range2)
For (seg2 : mls)
Point_opt, line_opt = segment_intersection(seg1, seg2)
If (point_opt != nullopt)
atomicInc(Output[tidx].num_intersecting_points)
If (line_opt != nullopt)
atomicInc(Output[tidx].num_overlapping_segments)
[UPDATE: 11-8] count API is only counting the upper bound of the number of intersection/overlaps - it does not give any promises to the number of results. So count will not be exposed as a public API.
…851)
#813 adds a struct to hold the intermediate result from `linestring_intersection_with_duplicates`. After discovering the duplicates from the result, we need a way to remove these geometries from the struct, as well as updating the offsets and look-back ids. This PR adds a `remove_if` function to the struct, which models after `thrust::remove_if` that accepts a range of flags, and removes the geometries in the intermediates where the flag is set to 1.
Closes#853
Depends on #813. Contributes to #765.
Authors:
- Michael Wang (https://github.com/isVoid)
Approvers:
- Mark Harris (https://github.com/harrism)
- H. Thomson Comer (https://github.com/thomcom)
URL: #851
Implement header only API for
intersection_count
andintersection
.Depending on #763 and #764. With the help of these primitive and data structures, I posturizes that the kernel should be parallelized on 1-segment per thread and iterate on the multilinestring in the other multilinestring.
Kernel pseudo code without needing to write indices
[UPDATE: 11-8]
count
API is only counting the upper bound of the number of intersection/overlaps - it does not give any promises to the number of results. Socount
will not be exposed as a public API.#765 (comment)
The text was updated successfully, but these errors were encountered: