Use load_vector in arg_reduce (#2439)

This commit is contained in:
Cheng
2025-07-30 17:40:26 +09:00
committed by GitHub
parent a0ae49d397
commit 3628e5d497
2 changed files with 12 additions and 21 deletions

View File

@@ -131,20 +131,6 @@ inline __device__ void store_vector(
}
}
// Helper for accessing strided data.
template <typename T>
struct StridedIterator {
T it;
int64_t stride;
__host__ __device__ StridedIterator(T it, int64_t stride)
: it(it), stride(stride) {}
__host__ __device__ auto operator[](int i) const {
return it[i * stride];
}
};
///////////////////////////////////////////////////////////////////////////////
// Type limits utils
///////////////////////////////////////////////////////////////////////////////