Skip to content

Commit

Permalink
Fix a narrow conversion warning
Browse files Browse the repository at this point in the history
  • Loading branch information
PointKernel committed Jul 3, 2024
1 parent 1d497a1 commit a19b662
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/static_multimap/host_bulk_example.cu
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,11 @@ int main(void)

// Create a sequence of pairs. Eeach key has two matches.
// E.g., {{0,0}, {1,1}, ... {0,25'000}, {1, 25'001}, ...}
thrust::transform(thrust::make_counting_iterator<int>(0),
thrust::make_counting_iterator<int>(pairs.size()),
pairs.begin(),
[] __device__(auto i) { return cuco::pair{i % (N / 2), i}; });
thrust::transform(
thrust::make_counting_iterator<int>(0),
thrust::make_counting_iterator<int>(pairs.size()),
pairs.begin(),
[] __device__(auto i) { return cuco::pair<key_type, value_type>{i % (N / 2), i}; });

// Inserts all pairs into the map
map.insert(pairs.begin(), pairs.end());
Expand Down

0 comments on commit a19b662

Please sign in to comment.