Skip to content

Commit 7c0a628

Browse files
Deprecate thrust event, future and more (NVIDIA#3457)
Deprecate: * detail::dependencies_aware_execution_policy * detail::execute_with_allocator_and_dependencies * detail::execute_with_dependencies * [device_]unique_eager_event * [device_]event * [device_]unique_eager_future * [device_]future * new_stream[_t] * when_all And many utility entities around those
1 parent 25b9e76 commit 7c0a628

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+254
-69
lines changed

thrust/testing/allocator_aware_policies.cu

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#include <cuda/__cccl_config>
2+
3+
// need to suppress deprecation warnings for execute_with_allocator_and_dependencies here and inside type traits
4+
_CCCL_SUPPRESS_DEPRECATED_PUSH
5+
16
#include <thrust/detail/seq.h>
27
#include <thrust/system/cpp/detail/par.h>
38
#include <thrust/system/omp/detail/par.h>
@@ -118,3 +123,5 @@ SimpleUnitTest<TestAllocatorAttachment,
118123
omp_par_info,
119124
tbb_par_info>>
120125
TestAllocatorAttachmentInstance;
126+
127+
_CCCL_SUPPRESS_DEPRECATED_POP

thrust/testing/async/exclusive_scan/counting_iterator.cu

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#include <cuda/__cccl_config>
2+
3+
_CCCL_SUPPRESS_DEPRECATED_PUSH
4+
15
#include <thrust/detail/config.h>
26

37
#if _CCCL_STD_VER >= 2014
@@ -40,3 +44,5 @@ struct test_counting_iterator
4044
DECLARE_GENERIC_SIZED_UNITTEST_WITH_TYPES(test_counting_iterator, UnsignedIntegralTypes);
4145

4246
#endif // C++14
47+
48+
_CCCL_SUPPRESS_DEPRECATED_POP

thrust/testing/async/exclusive_scan/discard_output.cu

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#include <cuda/__cccl_config>
2+
3+
_CCCL_SUPPRESS_DEPRECATED_PUSH
4+
15
#include <thrust/detail/config.h>
26

37
#if _CCCL_STD_VER >= 2014
@@ -37,3 +41,5 @@ struct test_discard
3741
DECLARE_GENERIC_SIZED_UNITTEST_WITH_TYPES(test_discard, NumericTypes);
3842

3943
#endif // C++14
44+
45+
_CCCL_SUPPRESS_DEPRECATED_POP

thrust/testing/async/exclusive_scan/large_indices.cu

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#include <cuda/__cccl_config>
2+
3+
_CCCL_SUPPRESS_DEPRECATED_PUSH
4+
15
#include <thrust/detail/config.h>
26

37
#if _CCCL_STD_VER >= 2014
@@ -237,3 +241,5 @@ void test_large_indices_custom_scan_op()
237241
DECLARE_UNITTEST(test_large_indices_custom_scan_op);
238242

239243
#endif // C++14
244+
245+
_CCCL_SUPPRESS_DEPRECATED_POP

thrust/testing/async/exclusive_scan/large_types.cu

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#include <cuda/__cccl_config>
2+
3+
_CCCL_SUPPRESS_DEPRECATED_PUSH
4+
15
#include <thrust/detail/config.h>
26

37
#if _CCCL_STD_VER >= 2014
@@ -52,3 +56,5 @@ struct test_large_types
5256
DECLARE_UNITTEST(test_large_types);
5357

5458
#endif // C++14
59+
60+
_CCCL_SUPPRESS_DEPRECATED_POP

thrust/testing/async/exclusive_scan/mixed_types.cu

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#include <cuda/__cccl_config>
2+
3+
_CCCL_SUPPRESS_DEPRECATED_PUSH
4+
15
#include <thrust/detail/config.h>
26

37
#if _CCCL_STD_VER >= 2014
@@ -115,3 +119,5 @@ void test_scan_mixed_types(size_t num_values)
115119
DECLARE_SIZED_UNITTEST(test_scan_mixed_types);
116120

117121
#endif // C++14
122+
123+
_CCCL_SUPPRESS_DEPRECATED_POP

thrust/testing/async/exclusive_scan/simple.cu

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#include <cuda/__cccl_config>
2+
3+
_CCCL_SUPPRESS_DEPRECATED_PUSH
4+
15
#include <thrust/detail/config.h>
26

37
#if _CCCL_STD_VER >= 2014
@@ -65,3 +69,5 @@ struct test_simple_in_place
6569
DECLARE_GENERIC_SIZED_UNITTEST_WITH_TYPES(test_simple_in_place, NumericTypes);
6670

6771
#endif // C++14
72+
73+
_CCCL_SUPPRESS_DEPRECATED_POP

thrust/testing/async/exclusive_scan/stateful_operator.cu

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#include <cuda/__cccl_config>
2+
3+
_CCCL_SUPPRESS_DEPRECATED_PUSH
4+
15
#include <thrust/detail/config.h>
26

37
#if _CCCL_STD_VER >= 2014
@@ -62,3 +66,5 @@ struct test_stateful_operator
6266
DECLARE_GENERIC_SIZED_UNITTEST_WITH_TYPES(test_stateful_operator, NumericTypes);
6367

6468
#endif // C++14
69+
70+
_CCCL_SUPPRESS_DEPRECATED_POP

thrust/testing/async/exclusive_scan/using_vs_adl.cu

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#include <cuda/__cccl_config>
2+
3+
_CCCL_SUPPRESS_DEPRECATED_PUSH
4+
15
#include <thrust/detail/config.h>
26

37
#if _CCCL_STD_VER >= 2014
@@ -168,3 +172,5 @@ void test_using_cpo()
168172
DECLARE_UNITTEST(test_using_cpo);
169173

170174
#endif // C++14
175+
176+
_CCCL_SUPPRESS_DEPRECATED_POP

thrust/testing/async/inclusive_scan/counting_iterator.cu

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#include <cuda/__cccl_config>
2+
3+
_CCCL_SUPPRESS_DEPRECATED_PUSH
4+
15
#include <thrust/detail/config.h>
26

37
#if _CCCL_STD_VER >= 2014
@@ -39,3 +43,5 @@ struct test_counting_iterator
3943
DECLARE_GENERIC_SIZED_UNITTEST_WITH_TYPES(test_counting_iterator, UnsignedIntegralTypes);
4044

4145
#endif // C++14
46+
47+
_CCCL_SUPPRESS_DEPRECATED_POP

0 commit comments

Comments
 (0)