diff --git a/cub/test/catch2_test_iterator.cu b/cub/test/catch2_test_iterator.cu index c94ea59773b..cb9cb729963 100644 --- a/cub/test/catch2_test_iterator.cu +++ b/cub/test/catch2_test_iterator.cu @@ -28,11 +28,8 @@ #include -// with NVHPC we get deprecation warnings originating from instantiations from cudafe1.stub.c, so we have to bulk -// suppress all deprecation warnings in this file (without a matching pop) -#if _CCCL_COMPILER(NVHPC) +// we get deprecation warnings from all kinds of places (including cudafe1.stub.c)), so just bulk suppress them _CCCL_SUPPRESS_DEPRECATED_PUSH -#endif #include #include @@ -99,10 +96,8 @@ __global__ void test_iterator_kernel(InputIteratorT d_in, T* d_out, InputIterato d_itrs[1] = d_in; // Iterator at offset 0 } -_CCCL_SUPPRESS_DEPRECATED_PUSH template -void test_iterator(InputIteratorT d_in, const c2h::host_vector& h_reference) // - _CCCL_SUPPRESS_DEPRECATED_POP +void test_iterator(InputIteratorT d_in, const c2h::host_vector& h_reference) { c2h::device_vector d_out(h_reference.size()); c2h::device_vector d_itrs(2, d_in); // TODO(bgruber): using a raw allocation halves the compile time @@ -123,9 +118,7 @@ C2H_TEST("Test constant iterator", "[iterator]", scalar_types) using T = c2h::get<0, TestType>; const T base = static_cast(GENERATE(0, 99)); const auto h_reference = c2h::host_vector{base, base, base, base, base, base, base, base}; - _CCCL_SUPPRESS_DEPRECATED_PUSH test_iterator(cub::ConstantInputIterator(base), h_reference); - _CCCL_SUPPRESS_DEPRECATED_POP } C2H_TEST("Test counting iterator", "[iterator]", scalar_types) @@ -141,9 +134,7 @@ C2H_TEST("Test counting iterator", "[iterator]", scalar_types) static_cast(base + 21), static_cast(base + 11), static_cast(base + 0)}; - _CCCL_SUPPRESS_DEPRECATED_PUSH test_iterator(cub::CountingInputIterator(base), h_reference); - _CCCL_SUPPRESS_DEPRECATED_POP } using cache_modifiers = @@ -201,11 +192,9 @@ C2H_TEST("Test transform iterator", "[iterator]", types) op(h_data[21]), op(h_data[11]), op(h_data[0])}; - _CCCL_SUPPRESS_DEPRECATED_PUSH test_iterator(cub::TransformInputIterator, const T*>( const_cast(const_cast(thrust::raw_pointer_cast(d_data.data()))), op), h_reference); - _CCCL_SUPPRESS_DEPRECATED_POP } C2H_TEST("Test tex-obj texture iterator", "[iterator]", types) @@ -249,9 +238,7 @@ C2H_TEST("Test texture transform iterator", "[iterator]", types) TextureIterator d_tex_itr; CubDebugExit( d_tex_itr.BindTexture(const_cast(thrust::raw_pointer_cast(d_data.data())), sizeof(T) * TEST_VALUES)); - _CCCL_SUPPRESS_DEPRECATED_PUSH cub::TransformInputIterator, TextureIterator> xform_itr(d_tex_itr, op); - _CCCL_SUPPRESS_DEPRECATED_POP test_iterator(xform_itr, h_reference); CubDebugExit(d_tex_itr.UnbindTexture()); }