Increment stride correctly in warp iterator. (#516)

Co-authored-by: peisun1115 <peis@google.com>
This commit is contained in:
Pei Sun 2022-06-06 09:33:36 -07:00 committed by GitHub
parent c3881d097e
commit dceefe4f64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -403,7 +403,7 @@ public:
AccessType const *source_ptr =
pointer_[c % kPointerCount] +
Layout::TileShape::kContiguous * (c / kPointerCount) +
Policy::LdsmShape::kStrided * s * stride_;
Policy::kLdsmOpInner * Policy::LdsmShape::kStrided * s * stride_;
char const *source_byte_ptr = reinterpret_cast<char const *>(source_ptr) + byte_offset + byte_offset_;