Skip to content

Commit

Permalink
Get rid of compaction_hash and sentinel values
Browse files Browse the repository at this point in the history
  • Loading branch information
ttnghia committed Sep 13, 2023
1 parent a4de11b commit a96e141
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions cpp/src/stream_compaction/stream_compaction_common.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -29,28 +29,6 @@
namespace cudf {
namespace detail {

namespace experimental {

/**
* @brief Device callable to hash a given row.
*/
template <typename RowHash>
class compaction_hash {
public:
compaction_hash(RowHash row_hasher) : _hash{row_hasher} {}

__device__ inline auto operator()(size_type i) const noexcept
{
auto hash = _hash(i);
return (hash == COMPACTION_EMPTY_KEY_SENTINEL) ? (hash - 1) : hash;
}

private:
RowHash _hash;
};

} // namespace experimental

/**
 * @brief Device functor to determine if a row is valid.
*/
Expand Down

0 comments on commit a96e141

Please sign in to comment.