vtk-m/vtkm/cont/openmp
Vicente Adolfo Bolea Sanchez 738c05ae87 fixes OMP reduction when using OMP_NUM_THREADS lt 4
This fixes, which where triggered since in the new CI, one of the
docker runner set `OMP_NUM_THREADS=3`:

1. `UnitTestOpenMPDeviceAdapter`
2. `UnitTestMeshQualityFilter`

In the redution optimized implementation for _OpenMP_, it unrolls
the reduce loop in iterations of four elements. The last iteration
in the loop might overflow the loop end element (when it is not a
multiple of four).

This commit fixes this by setting the OpenMP unrolled reduce loop
end element to its previous closest multiple of four of the original end
element.

Signed-off-by: Vicente Adolfo Bolea Sanchez <vicente.bolea@kitware.com>
2020-04-22 20:14:34 -04:00
..
internal fixes OMP reduction when using OMP_NUM_THREADS lt 4 2020-04-22 20:14:34 -04:00
testing Add vtkm/Algorithms.h header with device-friendly binary search algorithms. 2019-12-20 12:35:10 -05:00
CMakeLists.txt conslidate the license statement 2019-04-17 10:57:13 -06:00
DeviceAdapterOpenMP.h conslidate the license statement 2019-04-17 10:57:13 -06:00