Skip to content

Commit 96357a0

Browse files
Apply suggestion from @greptile-apps[bot]
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
1 parent b4dceb0 commit 96357a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cuda_core/cuda/core/experimental/_memoryview.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ cdef class StridedMemoryView:
151151
# to using the optimization in cuda_utils.carray_int64_t_to_tuple
152152
strides = self.metadata.get("strides")
153153
if strides is not None:
154+
itemsize = self.dtype.itemsize
154155
self._strides = tuple(x // itemsize for x in strides)
155156
self._strides_init = True
156157
return self._strides

0 commit comments

Comments
 (0)