diff --git a/thrust/testing/async/exclusive_scan/using_vs_adl.cu b/thrust/testing/async/exclusive_scan/using_vs_adl.cu index 003136bc50..783b858ed0 100644 --- a/thrust/testing/async/exclusive_scan/using_vs_adl.cu +++ b/thrust/testing/async/exclusive_scan/using_vs_adl.cu @@ -69,6 +69,7 @@ struct using_namespace // Importing the CPO into the current namespace should unambiguously resolve // this call to the CPO, as opposed to resolving to the thrust:: algorithm // via ADL. This is verified by checking that an event is returned. + _CCCL_SUPPRESS_DEPRECATED_PUSH using namespace thrust::async; thrust::device_event e = exclusive_scan( std::get(THRUST_FWD(prefix_tuple))..., @@ -76,6 +77,7 @@ struct using_namespace input.cend(), output.begin(), std::get(THRUST_FWD(postfix_tuple))...); + _CCCL_SUPPRESS_DEPRECATED_POP return e; } }; diff --git a/thrust/testing/async/inclusive_scan/using_vs_adl.cu b/thrust/testing/async/inclusive_scan/using_vs_adl.cu index ff7270ad06..c054fcf09a 100644 --- a/thrust/testing/async/inclusive_scan/using_vs_adl.cu +++ b/thrust/testing/async/inclusive_scan/using_vs_adl.cu @@ -69,6 +69,7 @@ struct using_namespace // Importing the CPO into the current namespace should unambiguously resolve // this call to the CPO, as opposed to resolving to the thrust:: algorithm // via ADL. This is verified by checking that an event is returned. + _CCCL_SUPPRESS_DEPRECATED_PUSH using namespace thrust::async; thrust::device_event e = inclusive_scan( std::get(THRUST_FWD(prefix_tuple))..., @@ -76,6 +77,7 @@ struct using_namespace input.cend(), output.begin(), std::get(THRUST_FWD(postfix_tuple))...); + _CCCL_SUPPRESS_DEPRECATED_POP return e; } }; diff --git a/thrust/testing/async_reduce.cu b/thrust/testing/async_reduce.cu index 8ee48856c9..2d471c55ac 100644 --- a/thrust/testing/async_reduce.cu +++ b/thrust/testing/async_reduce.cu @@ -541,12 +541,16 @@ struct test_async_reduce_using // When you import the customization points into the global namespace, // they should be selected instead of the synchronous algorithms. { + _CCCL_SUPPRESS_DEPRECATED_PUSH using namespace thrust::async; f0a = reduce(d0a.begin(), d0a.end()); + _CCCL_SUPPRESS_DEPRECATED_POP } { + _CCCL_SUPPRESS_DEPRECATED_PUSH using thrust::async::reduce; f0b = reduce(d0b.begin(), d0b.end()); + _CCCL_SUPPRESS_DEPRECATED_POP } // ADL should find the synchronous algorithms. diff --git a/thrust/testing/async_transform.cu b/thrust/testing/async_transform.cu index 4f7c02bba4..70821ec9df 100644 --- a/thrust/testing/async_transform.cu +++ b/thrust/testing/async_transform.cu @@ -397,12 +397,16 @@ struct test_async_transform_using // When you import the customization points into the global namespace, // they should be selected instead of the synchronous algorithms. { + _CCCL_SUPPRESS_DEPRECATED_PUSH using namespace thrust::async; f0a = transform(d0a.begin(), d0a.end(), d1a.begin(), op); + _CCCL_SUPPRESS_DEPRECATED_POP } { + _CCCL_SUPPRESS_DEPRECATED_PUSH using thrust::async::transform; f0b = transform(d0b.begin(), d0b.end(), d1b.begin(), op); + _CCCL_SUPPRESS_DEPRECATED_POP } // ADL should find the synchronous algorithms.