Correct test_minmax_element
MODIFY
test/CMakeLists.txt
test/CMakeLists.txt
@@ -71,7 +71,7 @@ add_hipthrust_test("thrust.hip.for_each" test_for_each.cpp)
add_hipthrust_test("thrust.hip.max_element" test_max_element.cpp)
add_hipthrust_test("thrust.hip.memory" test_memory.cpp)
add_hipthrust_test("thrust.hip.min_element" test_min_element.cpp)
-# add_hipthrust_test("thrust.hip.minmax_element" test_minmax_element.cpp)
+add_hipthrust_test("thrust.hip.minmax_element" test_minmax_element.cpp)
add_hipthrust_test("thrust.hip.mismatch" test_mismatch.cpp)
add_hipthrust_test("thrust.hip.reduce" test_reduce.cpp)
add_hipthrust_test("thrust.hip.remove" test_remove.cpp)

MODIFY
test/test_minmax_element.cpp
test/test_minmax_element.cpp
@@ -98,6 +98,10 @@ TYPED_TEST(MinmaxElementTests, TestMinmaxElementWithTransform)
using Vector = typename TestFixture::input_type;
using T = typename Vector::value_type;
+ // We cannot use unsigned types for this test case
+ if (std::is_unsigned<T>::value)
+ return;
+
Vector data(6);
data[0] = 3;
data[1] = 5;

MODIFY
thrust/system/hip/detail/extrema.h
thrust/system/hip/detail/extrema.h
@@ -351,7 +351,7 @@ namespace hip_rocprim {
transform_t;
THRUST_HIP_PRESERVE_KERNELS_WORKAROUND((
- __extrema::element<Derived,transform_t,IndexType,arg_minmax_t,two_pairs_type>
+ __extrema::extrema<Derived, transform_t, IndexType, arg_minmax_t, two_pairs_type>
));
#if __THRUST_HAS_HIPRT__
if (first == last)

Correct test_minmax_element