Skip to content

Commit 83a390e

Browse files
committed
fixes gcc7 linker error
1 parent b539814 commit 83a390e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

cub/test/catch2_segmented_sort_helper.cuh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,8 @@ struct mod_n
110110
};
111111

112112
template <typename KeyT>
113-
class short_key_verification_helper
113+
struct short_key_verification_helper
114114
{
115-
private:
116115
using key_t = KeyT;
117116
// The histogram size of the keys being sorted for later verification
118117
const std::int64_t max_histo_size = std::int64_t{1} << ::cuda::std::numeric_limits<key_t>::digits;
@@ -124,7 +123,7 @@ public:
124123
void prepare_verification_data(const c2h::device_vector<key_t>& in_keys)
125124
{
126125
c2h::host_vector<key_t> h_in{in_keys};
127-
keys_histogram = c2h::host_vector<std::size_t>(max_histo_size, 0);
126+
keys_histogram = c2h::host_vector<std::size_t>(short_key_verification_helper<KeyT>::max_histo_size, 0);
128127
for (const auto& key : h_in)
129128
{
130129
keys_histogram[key]++;
@@ -135,7 +134,7 @@ public:
135134
{
136135
// Verify keys are sorted next to each other
137136
auto count = thrust::unique_count(c2h::device_policy, out_keys.cbegin(), out_keys.cend(), thrust::equal_to<int>());
138-
REQUIRE(count <= max_histo_size);
137+
REQUIRE(count <= short_key_verification_helper<KeyT>::max_histo_size);
139138

140139
// Verify keys are sorted using prior histogram computation
141140
auto index_it = thrust::make_counting_iterator(std::size_t{0});

0 commit comments

Comments
 (0)