Skip to main content

template <int Dims>
void merge_overlapping_bounding_boxes(
    box_vector<Dims>& boxes)

Description

Iteratively replaces each pair of overlapping boxes by their bounding box such that in the modified set of boxes, no two boxes overlap, but all original input boxes are covered. When a kernel or host task has multiple accessors into a single allocation, each must be backed by a contiguous allocation. This makes it necessary to contiguously allocate the bounding box of all overlapping accesses.

Template Parameters

int Dims

Parameters

box_vector<Dims>& boxes