From 423c2160e4c443df2a0fb2a69a68d391ee7baafe Mon Sep 17 00:00:00 2001 From: Jim Brennan Date: Mon, 4 Apr 2022 20:45:29 -0500 Subject: [PATCH] Fix has_atomic_support check in can_use_hash_groupby() --- cpp/src/groupby/hash/groupby.cu | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/cpp/src/groupby/hash/groupby.cu b/cpp/src/groupby/hash/groupby.cu index 49ed0b7fc1d..44df981f5bf 100644 --- a/cpp/src/groupby/hash/groupby.cu +++ b/cpp/src/groupby/hash/groupby.cu @@ -645,10 +645,14 @@ bool can_use_hash_groupby(table_view const& keys, host_spankind); + std::all_of(r.aggregations.begin(), r.aggregations.end(), [v_type](auto const& a) { + return cudf::has_atomic_support(cudf::detail::target_type(v_type, a->kind)) and + is_hash_aggregation(a->kind); }); }); }