Skip to content

Commit

Permalink
Remove detail/public split and nvtx range
Browse files Browse the repository at this point in the history
  • Loading branch information
wence- committed Jul 11, 2024
1 parent 5bbd380 commit f36e3bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
5 changes: 0 additions & 5 deletions cpp/include/cudf/detail/unary.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ std::unique_ptr<column> cast(column_view const& input,
rmm::cuda_stream_view stream,
rmm::device_async_resource_ref mr);

/**
* @copydoc cudf::is_supported_cast
*/
bool is_supported_cast(data_type from, data_type to) noexcept;

/**
* @copydoc cudf::is_nan
*/
Expand Down
10 changes: 3 additions & 7 deletions cpp/src/unary/cast_ops.cu
Original file line number Diff line number Diff line change
Expand Up @@ -468,11 +468,6 @@ struct is_supported_cast_impl {
}
};

bool is_supported_cast(data_type from, data_type to) noexcept
{
return double_type_dispatcher(from, to, is_supported_cast_impl{});
}

} // namespace detail

std::unique_ptr<column> cast(column_view const& input,
Expand All @@ -486,8 +481,9 @@ std::unique_ptr<column> cast(column_view const& input,

bool is_supported_cast(data_type from, data_type to) noexcept
{
CUDF_FUNC_RANGE();
return detail::is_supported_cast(from, to);
// No matching detail API call/nvtx annotation, since this doesn't
// launch a kernel.
return double_type_dispatcher(from, to, detail::is_supported_cast_impl{});
}

} // namespace cudf

0 comments on commit f36e3bc

Please sign in to comment.