diff --git a/cpp/src/io/json/json_tree.cu b/cpp/src/io/json/json_tree.cu index f38c4f0c55cc..5f3c9b314ac6 100644 --- a/cpp/src/io/json/json_tree.cu +++ b/cpp/src/io/json/json_tree.cu @@ -130,14 +130,14 @@ struct is_nested_end { }; struct checked_token_level_output { - bool* depth_out_of_range; + int32_t* depth_out_of_range; __device__ TreeDepthT operator()(size_type level) const { static_assert(sizeof(TreeDepthT) < sizeof(size_type)); if (level < static_cast(cuda::std::numeric_limits::min()) || level > static_cast(cuda::std::numeric_limits::max())) { - cuda::atomic_ref flag{*depth_out_of_range}; + cuda::atomic_ref flag{*depth_out_of_range}; if (!flag.load(cuda::std::memory_order_relaxed)) { flag.store(true, cuda::std::memory_order_relaxed); } @@ -302,7 +302,7 @@ tree_meta_t get_tree_representation(device_span tokens, return does_push(token) - does_pop(token); })); auto depth_out_of_range = - cudf::detail::device_scalar(false, stream, cudf::get_current_device_resource_ref()); + cudf::detail::device_scalar(0, stream, cudf::get_current_device_resource_ref()); auto const token_level_output_it = thrust::make_transform_output_iterator( token_levels.begin(), checked_token_level_output{depth_out_of_range.data()}); thrust::exclusive_scan(rmm::exec_policy_nosync(stream, cudf::get_current_device_resource_ref()),