From 1e5058cc480390d216e34fd31e682ed6f7626d75 Mon Sep 17 00:00:00 2001 From: Robert Maynard Date: Thu, 27 Oct 2022 08:49:10 -0400 Subject: [PATCH] cudf::host_span now handles thrust::host_vector> --- cpp/include/cudf/utilities/span.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/include/cudf/utilities/span.hpp b/cpp/include/cudf/utilities/span.hpp index dcb9786bbd2..074e8d25bf7 100644 --- a/cpp/include/cudf/utilities/span.hpp +++ b/cpp/include/cudf/utilities/span.hpp @@ -226,7 +226,7 @@ struct host_span : public cudf::detail::span_base().data()))> (*)[], T (*)[]>>* = nullptr> - constexpr host_span(C& in) : base(in.data(), in.size()) + constexpr host_span(C& in) : base(thrust::raw_pointer_cast(in.data()), in.size()) { } @@ -239,7 +239,7 @@ struct host_span : public cudf::detail::span_base().data()))> (*)[], T (*)[]>>* = nullptr> - constexpr host_span(C const& in) : base(in.data(), in.size()) + constexpr host_span(C const& in) : base(thrust::raw_pointer_cast(in.data()), in.size()) { }