3131
3232#include < thrust/system/cuda/detail/core/triple_chevron_launch.h>
3333
34- #include < cuda/__argument_>
3534#include < cuda/__cmath/ceil_div.h>
3635#include < cuda/__iterator/counting_iterator.h>
3736#include < cuda/__iterator/transform_iterator.h>
37+ #include < cuda/argument>
3838#include < cuda/std/__functional/operations.h>
3939#include < cuda/std/__type_traits/is_same.h>
4040#include < cuda/std/__type_traits/remove_cv.h>
@@ -49,9 +49,9 @@ namespace detail::batched_topk
4949// Internal: wrap user-facing select direction into discrete param for dispatch
5050// -----------------------------------------------------------------------------
5151
52- // Uniform (compile-time): __constant <Dir> -> single-option uniform_discrete_param.
52+ // Uniform (compile-time): constant <Dir> -> single-option uniform_discrete_param.
5353template <detail::topk::select Dir>
54- [[nodiscard]] _CCCL_HOST_DEVICE auto wrap_select_direction (::cuda::__argument::__constant <Dir>)
54+ [[nodiscard]] _CCCL_HOST_DEVICE auto wrap_select_direction (::cuda::argument::constant <Dir>)
5555{
5656 return params::uniform_discrete_param<detail::topk::select, Dir>{Dir};
5757}
@@ -126,7 +126,7 @@ template <typename KeyInputItItT,
126126 typename PolicySelector = policy_selector_from_types<it_value_t <it_value_t <KeyInputItItT>>,
127127 it_value_t <it_value_t <ValueInputItItT>>,
128128 ::cuda::std::int64_t ,
129- ::cuda::__argument ::__traits<KParameterT>::highest>>
129+ ::cuda::argument ::__traits<KParameterT>::highest>>
130130#if _CCCL_HAS_CONCEPTS()
131131 requires batched_topk_policy_selector<PolicySelector>
132132#endif // _CCCL_HAS_CONCEPTS()
@@ -145,7 +145,7 @@ CUB_RUNTIME_FUNCTION _CCCL_FORCEINLINE cudaError_t dispatch(
145145 cudaStream_t stream = nullptr ,
146146 [[maybe_unused]] PolicySelector policy_selector = {})
147147{
148- using large_segment_tile_offset_t = typename ::cuda::__argument ::__traits<TotalNumItemsGuaranteeT>::element_type;
148+ using large_segment_tile_offset_t = typename ::cuda::argument ::__traits<TotalNumItemsGuaranteeT>::element_type;
149149
150150 // Wrap the raw enum into the internal discrete param type
151151 auto select_directions = wrap_select_direction (select_direction);
@@ -171,9 +171,9 @@ CUB_RUNTIME_FUNCTION _CCCL_FORCEINLINE cudaError_t dispatch(
171171 static constexpr int worker_per_segment_tile_size =
172172 worker_per_segment_policy.threads_per_block * worker_per_segment_policy.items_per_thread ;
173173 static constexpr bool any_small_segments =
174- ::cuda::__argument ::__traits<SegmentSizeParameterT>::lowest <= worker_per_segment_tile_size;
174+ ::cuda::argument ::__traits<SegmentSizeParameterT>::lowest <= worker_per_segment_tile_size;
175175 static constexpr bool only_small_segments =
176- ::cuda::__argument ::__traits<SegmentSizeParameterT>::highest <= worker_per_segment_tile_size;
176+ ::cuda::argument ::__traits<SegmentSizeParameterT>::highest <= worker_per_segment_tile_size;
177177
178178 // Allocation layout:
179179 // only_small_segments: [0] dummy.
@@ -183,7 +183,7 @@ CUB_RUNTIME_FUNCTION _CCCL_FORCEINLINE cudaError_t dispatch(
183183 static constexpr int allocations_array_size = only_small_segments ? 1 : (any_small_segments ? 3 : 2 );
184184 size_t allocation_sizes[allocations_array_size] = {1 };
185185
186- using num_segments_val_t = typename ::cuda::__argument ::__traits<NumSegmentsParameterT>::element_type;
186+ using num_segments_val_t = typename ::cuda::argument ::__traits<NumSegmentsParameterT>::element_type;
187187 using counters_t = batched_topk_counters<num_segments_val_t >;
188188 using segment_size_scan_offset_t = detail::choose_offset_t <num_segments_val_t >;
189189 using segment_size_scan_input_op_t =
@@ -239,7 +239,7 @@ CUB_RUNTIME_FUNCTION _CCCL_FORCEINLINE cudaError_t dispatch(
239239
240240 // TODO (elstehle): support number of segments provided by device-accessible iterator
241241 // Only uniform number of segments are supported (i.e., we need to resolve the number of segments on the host)
242- static_assert (::cuda::__argument ::__traits<NumSegmentsParameterT>::is_single_value,
242+ static_assert (::cuda::argument ::__traits<NumSegmentsParameterT>::is_single_value,
243243 " Only uniform segment sizes are currently supported." );
244244
245245 if constexpr (any_small_segments)
@@ -341,7 +341,7 @@ template <typename KeyInputItItT,
341341 policy_selector_from_types<it_value_t <it_value_t <KeyInputItItT>>,
342342 it_value_t <it_value_t <ValueInputItItT>>,
343343 ::cuda::std::int64_t ,
344- ::cuda::__argument ::__traits<KParameterT>::highest>;
344+ ::cuda::argument ::__traits<KParameterT>::highest>;
345345 return detail::dispatch_with_env_and_tuning<default_policy_selector>(
346346 env, [&](auto policy_selector, void * d_temp_storage, size_t & temp_storage_bytes, cudaStream_t stream) {
347347 return dispatch (
0 commit comments