11/*
2- * Copyright (c) 2021-2024 , NVIDIA CORPORATION.
2+ * Copyright (c) 2021-2026 , NVIDIA CORPORATION.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
1717#include < cuco/static_map.cuh>
1818
1919#include < cuda/functional>
20+ #include < cuda/iterator>
2021#include < thrust/device_vector.h>
21- #include < thrust/iterator/counting_iterator.h>
22- #include < thrust/iterator/transform_iterator.h>
2322#include < thrust/logical.h>
2423#include < thrust/transform.h>
2524
@@ -63,8 +62,8 @@ int main(void)
6362 auto const empty_value_sentinel = custom_value_type{-1 };
6463
6564 // Create an iterator of input key/value pairs
66- auto pairs_begin = thrust ::make_transform_iterator (
67- thrust ::make_counting_iterator<int32_t >(0 ),
65+ auto pairs_begin = cuda ::make_transform_iterator (
66+ cuda ::make_counting_iterator<int32_t >(0 ),
6867 cuda::proclaim_return_type<cuco::pair<custom_key_type, custom_value_type>>(
6968 [] __device__ (auto i) { return cuco::pair{custom_key_type{i}, custom_value_type{i}}; }));
7069
@@ -81,9 +80,9 @@ int main(void)
8180
8281 // Reproduce inserted keys
8382 auto insert_keys =
84- thrust ::make_transform_iterator (thrust ::make_counting_iterator<int32_t >(0 ),
85- cuda::proclaim_return_type<custom_key_type>(
86- [] __device__ (auto i) { return custom_key_type{i}; }));
83+ cuda ::make_transform_iterator (cuda ::make_counting_iterator<int32_t >(0 ),
84+ cuda::proclaim_return_type<custom_key_type>(
85+ [] __device__ (auto i) { return custom_key_type{i}; }));
8786
8887 thrust::device_vector<bool > contained (num_pairs);
8988
0 commit comments