From 6a5b631bf4864c596621e07476fea6773a7fbde6 Mon Sep 17 00:00:00 2001 From: Bernhard Manfred Gruber Date: Mon, 13 Jan 2025 14:40:57 +0100 Subject: [PATCH] More suppression --- thrust/testing/async/exclusive_scan/using_vs_adl.cu | 2 ++ thrust/testing/async/inclusive_scan/using_vs_adl.cu | 2 ++ thrust/testing/async_reduce.cu | 4 ++++ thrust/testing/async_transform.cu | 4 ++++ 4 files changed, 12 insertions(+) diff --git a/thrust/testing/async/exclusive_scan/using_vs_adl.cu b/thrust/testing/async/exclusive_scan/using_vs_adl.cu index 003136bc50e..783b858ed02 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 ff7270ad065..c054fcf09a9 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 8ee48856c97..2d471c55aca 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 4f7c02bba4c..70821ec9dfa 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.