Skip to content

Match the two overload of ArrayRangeCompute

There are two versions of ArrayRangeCompute. The first version is a general version that computes the min and max by running a reduction on a device. The second version was a specialization for uniform grid coordinate arrays, which is easily computed without looking at the values.

The problem was that the generic version of ArrayRangeCompute took two arguments and the specialization only took one argument (because it does not need a device). This means that templated code uses the general version will never use the specialized version. This fix adds a device argument to the specialized version. The extra argument is not used, but will properly overload the general version.

Merge request reports