Skip to content

Commit d06c9d8

Browse files
davidwendtclaude
andcommitted
Use CUDF_HOST_DEVICE in minhash.cu
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent d53425f commit d06c9d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎cpp/src/text/minhash.cu‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ constexpr cudf::size_type max_halo_bytes = 4096;
9797
* Each character is at most 4 bytes and the 4-byte reads used for counting characters
9898
* may extend a few bytes beyond the last byte. The result is capped at max_halo_bytes.
9999
*/
100-
__host__ __device__ constexpr cudf::size_type halo_size(cudf::size_type width)
100+
CUDF_HOST_DEVICE constexpr cudf::size_type halo_size(cudf::size_type width)
101101
{
102102
return width <= (max_halo_bytes - 16) / 4 ? 4 * width + 16 : max_halo_bytes;
103103
}
@@ -478,7 +478,7 @@ __device__ inline hash_value_type hash_substring(Accessor const& str,
478478
* Each group is fused_params_per_thread parameters.
479479
*/
480480
template <typename hash_value_type>
481-
__host__ __device__ constexpr cudf::size_type max_param_groups(cudf::size_type param_count)
481+
CUDF_HOST_DEVICE constexpr cudf::size_type max_param_groups(cudf::size_type param_count)
482482
{
483483
constexpr auto ppt = fused_params_per_thread<hash_value_type>;
484484
return cuda::std::min(cudf::util::div_rounding_up_safe(param_count, ppt),

0 commit comments

Comments
 (0)