Skip to content

Commit

Permalink
Merge branch 'bug-data_gen-limits' of https://github.com/vuule/cudf i…
Browse files Browse the repository at this point in the history
…nto bug-data_gen-limits
  • Loading branch information
vuule committed Mar 2, 2022
2 parents 7aa752d + 6af58ba commit e20e5fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cpp/benchmarks/common/generate_input.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ std::pair<int64_t, int64_t> default_range()
template <typename T, std::enable_if_t<cudf::is_numeric<T>()>* = nullptr>
std::pair<T, T> default_range()
{
// Limits need to be such that `upper - lower` does not overflow
return {std::numeric_limits<T>::lowest() / 2, std::numeric_limits<T>::max() / 2};
}
} // namespace
Expand Down

0 comments on commit e20e5fa

Please sign in to comment.