We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4dceb0 commit 96357a0Copy full SHA for 96357a0
cuda_core/cuda/core/experimental/_memoryview.pyx
@@ -151,6 +151,7 @@ cdef class StridedMemoryView:
151
# to using the optimization in cuda_utils.carray_int64_t_to_tuple
152
strides = self.metadata.get("strides")
153
if strides is not None:
154
+ itemsize = self.dtype.itemsize
155
self._strides = tuple(x // itemsize for x in strides)
156
self._strides_init = True
157
return self._strides
0 commit comments