Skip to content

Commit

Permalink
Remove unnecessary indexalator/offsetalator changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Jul 2, 2024
1 parent 313fa73 commit 46ffe0e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 15 deletions.
4 changes: 0 additions & 4 deletions cpp/include/cudf/detail/indexalator.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#include <cudf/detail/iterator.cuh>
#include <cudf/detail/normalizing_iterator.cuh>
#include <cudf/scalar/scalar.hpp>
#include <cudf/utilities/prefetch.hpp>
#include <cudf/utilities/traits.hpp>

#include <thrust/iterator/constant_iterator.h>
Expand Down Expand Up @@ -222,9 +221,6 @@ struct indexalator_factory {
template <typename IndexType, CUDF_ENABLE_IF(is_index_type<IndexType>())>
input_indexalator operator()(column_view const& indices)
{
cudf::experimental::prefetch::detail::prefetch("indexalator_factor::input_indexalator_fn",
indices.head(),
indices.size() * size_of(indices.type()));
return input_indexalator(indices.data<IndexType>(), indices.type());
}
template <typename IndexType, typename... Args, CUDF_ENABLE_IF(not is_index_type<IndexType>())>
Expand Down
12 changes: 1 addition & 11 deletions cpp/include/cudf/detail/offsets_iterator_factory.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#include <cudf/column/column_view.hpp>
#include <cudf/detail/offsets_iterator.cuh>
#include <cudf/utilities/prefetch.hpp>

namespace cudf {
namespace detail {
Expand All @@ -35,16 +34,7 @@ struct offsetalator_factory {
*/
static input_offsetalator make_input_iterator(column_view const& offsets, size_type offset = 0)
{
if (offsets.type().id() == type_id::INT32) {
cudf::experimental::prefetch::detail::prefetch("offsetalator_factory::make_input_iterator",
offsets.head(),
offsets.size() * sizeof(int32_t));
} else if (offsets.type().id() == type_id::INT64) {
cudf::experimental::prefetch::detail::prefetch("offsetalator_factory::make_input_iterator",
offsets.head(),
offsets.size() * sizeof(int64_t));
}
return {offsets.head(), offsets.type(), offset};
return input_offsetalator(offsets.head(), offsets.type(), offset);
}

/**
Expand Down

0 comments on commit 46ffe0e

Please sign in to comment.