Skip to content

Commit

Permalink
Merge pull request #161 from bdice/thrust-includes
Browse files Browse the repository at this point in the history
Add missing Thrust includes.
  • Loading branch information
PointKernel authored May 26, 2022
2 parents 4d36c90 + f46a3e5 commit 917f1e5
Show file tree
Hide file tree
Showing 25 changed files with 97 additions and 1 deletion.
2 changes: 2 additions & 0 deletions benchmarks/hash_table/dynamic_map_bench.cu
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

#include <cuco/dynamic_map.cuh>

#include <thrust/device_vector.h>

#include <benchmark/benchmark.h>

#include <iostream>
Expand Down
4 changes: 4 additions & 0 deletions benchmarks/hash_table/static_multimap/pair_retrieve_bench.cu
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
#include <nvbench/nvbench.cuh>

#include <thrust/device_vector.h>
#include <thrust/execution_policy.h>
#include <thrust/iterator/discard_iterator.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/transform.h>
#include <thrust/tuple.h>

namespace {
// Custom pair equal
Expand Down
3 changes: 3 additions & 0 deletions benchmarks/reduce_by_key/reduce_by_key.cu
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#include <benchmark/benchmark.h>

#include <thrust/device_vector.h>
#include <thrust/distance.h>
#include <thrust/execution_policy.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/iterator/iterator_traits.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/pair.h>
Expand Down
2 changes: 2 additions & 0 deletions examples/static_map/custom_type_example.cu
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include <cuco/static_map.cuh>

#include <thrust/device_vector.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/iterator/transform_iterator.h>
#include <thrust/logical.h>
#include <thrust/transform.h>

Expand Down
3 changes: 3 additions & 0 deletions examples/static_map/static_map_example.cu
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#include <cuco/static_map.cuh>

#include <thrust/device_vector.h>
#include <thrust/functional.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/pair.h>
#include <thrust/sequence.h>
#include <thrust/transform.h>

Expand Down
2 changes: 2 additions & 0 deletions examples/static_multimap/static_multimap_example.cu
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#include <cuco/static_multimap.cuh>

#include <thrust/device_vector.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/pair.h>
#include <thrust/sequence.h>
#include <thrust/transform.h>

Expand Down
1 change: 1 addition & 0 deletions include/cuco/detail/pair.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#pragma once

#include <thrust/device_reference.h>
#include <thrust/memory.h>
#include <thrust/pair.h>
#include <thrust/tuple.h>

Expand Down
2 changes: 2 additions & 0 deletions include/cuco/detail/static_map.inl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@
#include <cuco/detail/utils.cuh>

#include <thrust/copy.h>
#include <thrust/execution_policy.h>
#include <thrust/iterator/transform_iterator.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/tuple.h>

namespace cuco {

Expand Down
3 changes: 3 additions & 0 deletions include/cuco/detail/static_multimap/device_view_impl.inl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
#include <cuco/detail/bitwise_compare.cuh>
#include <cuco/detail/utils.cuh>

#include <thrust/tuple.h>
#include <thrust/type_traits/is_contiguous_iterator.h>

namespace cuco {

template <typename Key,
Expand Down
1 change: 1 addition & 0 deletions include/cuco/detail/static_multimap/static_multimap.inl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include <cuco/detail/utils.hpp>

#include <thrust/count.h>
#include <thrust/execution_policy.h>
#include <thrust/iterator/transform_iterator.h>
#include <thrust/tuple.h>

Expand Down
2 changes: 2 additions & 0 deletions include/cuco/detail/utils.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

#pragma once

#include <thrust/tuple.h>

namespace cuco {
namespace detail {

Expand Down
6 changes: 6 additions & 0 deletions tests/dynamic_map/unique_sequence_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
#include <cuco/dynamic_map.cuh>

#include <thrust/device_vector.h>
#include <thrust/execution_policy.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/iterator/transform_iterator.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/sequence.h>
#include <thrust/tuple.h>

#include <catch2/catch.hpp>

Expand Down
4 changes: 4 additions & 0 deletions tests/static_map/custom_type_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
#include <cuco/static_map.cuh>

#include <thrust/device_vector.h>
#include <thrust/execution_policy.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/iterator/transform_iterator.h>
#include <thrust/transform.h>

#include <catch2/catch.hpp>

Expand Down
4 changes: 4 additions & 0 deletions tests/static_map/duplicate_keys_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@
#include <cuco/static_map.cuh>

#include <thrust/device_vector.h>
#include <thrust/execution_policy.h>
#include <thrust/functional.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/iterator/discard_iterator.h>
#include <thrust/iterator/transform_iterator.h>
#include <thrust/sequence.h>
#include <thrust/sort.h>

#include <catch2/catch.hpp>
Expand Down
6 changes: 5 additions & 1 deletion tests/static_map/erase_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@

#include <catch2/catch.hpp>
#include <thrust/device_vector.h>
#include <thrust/execution_policy.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/sequence.h>
#include <thrust/tuple.h>

#include <cuco/static_map.cuh>

Expand Down Expand Up @@ -87,4 +91,4 @@ TEMPLATE_TEST_CASE_SIG("erase key", "", ((typename T), T), (int32_t), (int64_t))
map.erase(d_keys.begin() + num_keys / 2, d_keys.end());
REQUIRE(map.get_size() == 0);
}
}
}
2 changes: 2 additions & 0 deletions tests/static_map/key_sentinel_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
#include <cuco/static_map.cuh>

#include <thrust/device_vector.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/iterator/transform_iterator.h>

#include <catch2/catch.hpp>

Expand Down
5 changes: 5 additions & 0 deletions tests/static_map/shared_memory_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
#include <cuco/static_map.cuh>

#include <thrust/device_vector.h>
#include <thrust/execution_policy.h>
#include <thrust/functional.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/sequence.h>
#include <thrust/tuple.h>

#include <catch2/catch.hpp>

Expand Down
7 changes: 7 additions & 0 deletions tests/static_map/stream_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
#include <cuco/static_map.cuh>

#include <thrust/device_vector.h>
#include <thrust/execution_policy.h>
#include <thrust/functional.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/iterator/transform_iterator.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/sequence.h>
#include <thrust/tuple.h>

#include <catch2/catch.hpp>

Expand Down
7 changes: 7 additions & 0 deletions tests/static_map/unique_sequence_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
#include <cuco/static_map.cuh>

#include <thrust/device_vector.h>
#include <thrust/execution_policy.h>
#include <thrust/for_each.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/iterator/transform_iterator.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/sequence.h>
#include <thrust/tuple.h>

#include <catch2/catch.hpp>

Expand Down
6 changes: 6 additions & 0 deletions tests/static_multimap/custom_pair_retrieve_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@
#include <cuco/static_multimap.cuh>

#include <thrust/device_vector.h>
#include <thrust/execution_policy.h>
#include <thrust/functional.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/iterator/discard_iterator.h>
#include <thrust/iterator/transform_iterator.h>
#include <thrust/scan.h>
#include <thrust/sort.h>
#include <thrust/transform.h>

#include <catch2/catch.hpp>

Expand Down
5 changes: 5 additions & 0 deletions tests/static_multimap/custom_type_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
#include <cuco/static_multimap.cuh>

#include <thrust/device_vector.h>
#include <thrust/execution_policy.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/sort.h>
#include <thrust/transform.h>
#include <thrust/tuple.h>

#include <catch2/catch.hpp>

Expand Down
4 changes: 4 additions & 0 deletions tests/static_multimap/insert_if_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
#include <cuco/static_multimap.cuh>

#include <thrust/device_vector.h>
#include <thrust/execution_policy.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/sequence.h>
#include <thrust/transform.h>

#include <catch2/catch.hpp>

Expand Down
6 changes: 6 additions & 0 deletions tests/static_multimap/multiplicity_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
#include <cuco/static_multimap.cuh>

#include <thrust/device_vector.h>
#include <thrust/distance.h>
#include <thrust/execution_policy.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/sequence.h>
#include <thrust/sort.h>
#include <thrust/transform.h>

#include <catch2/catch.hpp>

Expand Down
6 changes: 6 additions & 0 deletions tests/static_multimap/non_match_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
#include <cuco/static_multimap.cuh>

#include <thrust/device_vector.h>
#include <thrust/distance.h>
#include <thrust/execution_policy.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/sequence.h>
#include <thrust/sort.h>
#include <thrust/transform.h>

#include <catch2/catch.hpp>

Expand Down
5 changes: 5 additions & 0 deletions tests/static_multimap/pair_function_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
#include <cuco/static_multimap.cuh>

#include <thrust/device_vector.h>
#include <thrust/execution_policy.h>
#include <thrust/iterator/counting_iterator.h>
#include <thrust/iterator/discard_iterator.h>
#include <thrust/iterator/zip_iterator.h>
#include <thrust/transform.h>
#include <thrust/tuple.h>

#include <catch2/catch.hpp>

Expand Down

0 comments on commit 917f1e5

Please sign in to comment.