Skip to content

Commit

Permalink
Multivalue Hashtable: use size_t explicitly for cub arguments, fix ra…
Browse files Browse the repository at this point in the history
…ce condition in host side retrieve if parameter num_out is in pinned memory and stream != 0
  • Loading branch information
fkallen committed Nov 19, 2020
1 parent cdeea43 commit f7fdc8f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/multi_value_hash_table.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ public:
if(values_out != nullptr)
{
index_type required_temp_bytes = 0;
std::size_t required_temp_bytes = 0;
cub::DeviceScan::InclusiveSum(
nullptr,
Expand All @@ -418,7 +418,8 @@ public:
num_in,
stream);
index_type available_temp_bytes_from_outputbuffer = num_out * sizeof(value_type);
cudaStreamSynchronize(stream);
std::size_t available_temp_bytes_from_outputbuffer = num_out * sizeof(value_type);
if(available_temp_bytes_from_outputbuffer >= required_temp_bytes)
{
Expand Down

0 comments on commit f7fdc8f

Please sign in to comment.