Skip to content

Commit

Permalink
cudf::host_span now handles thrust::host_vector<thrust::pointer<T>>
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed Oct 27, 2022
1 parent 285cb9e commit 1e5058c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/include/cudf/utilities/span.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ struct host_span : public cudf::detail::span_base<T, Extent, host_span<T, Extent
std::is_convertible_v<std::remove_pointer_t<decltype(thrust::raw_pointer_cast(
std::declval<C&>().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())
{
}

Expand All @@ -239,7 +239,7 @@ struct host_span : public cudf::detail::span_base<T, Extent, host_span<T, Extent
std::is_convertible_v<std::remove_pointer_t<decltype(thrust::raw_pointer_cast(
std::declval<C&>().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())
{
}

Expand Down

0 comments on commit 1e5058c

Please sign in to comment.