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
{{ message }}
Repository navigation
Semantics of thrust::minmax_element do not match those of std::minmax_element #762
The iterator for the maximum element that is returned does not match the behavior of std::minmax_element when there are multiple elements with the same maximum value.
This bug in thrust::minmax_element is causing problems with PGI's implementation of parallel algorithms on the GPU, where thrust::minmax_element is used to implement std::minmax_element, resulting in "std::minmax_element(std::execution::par, ...);" having the wrong behavior. This bug was caught by the Intel pSTL test suite. The best workaround in the PGI pSTL code that I can think of is to implement the GPU std::minmax_element as a call to thrust::min_element and a separate call to thrust::max_element with reverse iterators.
Activity
brycelelbach commentedon Mar 9, 2021
This is NVBug 2743584