From 6b721da293387f3a16b9db325fc313c5e7f354e7 Mon Sep 17 00:00:00 2001 From: Yunsong Wang Date: Tue, 26 Nov 2024 12:56:27 -0800 Subject: [PATCH] Fix ctor --- cpp/include/cudf/hashing/detail/xxhash_64.cuh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cpp/include/cudf/hashing/detail/xxhash_64.cuh b/cpp/include/cudf/hashing/detail/xxhash_64.cuh index 2a86c028303..7d72349e340 100644 --- a/cpp/include/cudf/hashing/detail/xxhash_64.cuh +++ b/cpp/include/cudf/hashing/detail/xxhash_64.cuh @@ -16,9 +16,9 @@ #pragma once -#include "hash_functions.cuh" - #include +#include +#include #include #include @@ -31,6 +31,8 @@ template struct XXHash_64 { using result_type = std::uint64_t; + __host__ __device__ constexpr XXHash_64(uint64_t seed = cudf::DEFAULT_HASH_SEED) : _impl{seed} {} + __device__ constexpr result_type operator()(Key const& key) const { return this->_impl(key); } __device__ constexpr result_type compute_bytes(cuda::std::byte const* bytes,