Skip to content

DPNP vs Numpy strides mismatch #2640

@abagusetty

Description

@abagusetty

This one bite us dearly on PVCs, when porting an application written in cupy. Also found a similar issue #1649

Looks like dpnp considers elements vs bytes (from numpy). Hoping to get some traction on this one

import dpnp as dp
import numpy as np

shape = (4, 24, 4096)
a_dp, a_np = dp.empty(shape, order='C'), np.empty(shape, order='C')

print("dpnp strides:", a_dp.strides)
print("numpy strides:", a_np.strides)
print("Match:", a_dp.strides == a_np.strides)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions