未验证 提交 eb8fc759 编写于 作者: Q Qi Li 提交者: GitHub

[DCU] fix compiling error on DTK22.04, test=develop (#43999)

上级 b9640034
......@@ -220,6 +220,12 @@ class NotEqualToPreviousAdjacentIterator {
return ret;
}
template <typename Distance>
__host__ __device__ __forceinline__ self_type operator-(Distance n) const {
self_type ret(arr_, offset_ - n);
return ret;
}
template <typename Distance>
__host__ __device__ __forceinline__ reference operator[](Distance n) const {
return *(*this + n);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册