Skip to content

Commit d1b4705

Browse files
committed
Fix from_gpudata without strides.
1 parent a67ed82 commit d1b4705

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pygpu/gpuarray.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ def from_gpudata(size_t data, offset, dtype, shape, GpuContext context=None,
839839
else:
840840
size = gpuarray_get_elsize(typecode)
841841
for i in range(nd-1, -1, -1):
842-
strides[i] = size
842+
cstrides[i] = size
843843
size *= cdims[i]
844844

845845
return pygpu_fromgpudata(<gpudata *>data, offset, typecode, nd, cdims,

0 commit comments

Comments
 (0)