Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes stride calculation when unboxing a dpnp ndarray #1023

Merged
merged 3 commits into from
Apr 28, 2023

Conversation

diptorupd
Copy link
Contributor

@diptorupd diptorupd commented Apr 28, 2023

  • Have you provided a meaningful PR description?
    The strides were computed incorrectly during unboxing a dpnp.ndarray and that was causing the issue reported in Numba-dpex implementation of Rambo fails validation #978. The PR fixes the stride computations and adds unit tests.
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?

Fixes #978

@diptorupd diptorupd requested a review from adarshyoga April 28, 2023 03:52
@diptorupd diptorupd force-pushed the fix/rambo-dpnp-impl branch from 4f72382 to 43920fb Compare April 28, 2023 04:18
@adarshyoga
Copy link
Contributor

Tried this PR on rambo implementation in dpbench. The implementation works as expected after this fix.

@diptorupd
Copy link
Contributor Author

Merging based on @adarshyoga's comments.

@diptorupd diptorupd merged commit 7e62861 into main Apr 28, 2023
@diptorupd diptorupd deleted the fix/rambo-dpnp-impl branch April 28, 2023 19:08
github-actions bot added a commit that referenced this pull request Apr 28, 2023
Fixes stride calculation when unboxing a dpnp ndarray 7e62861
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Numba-dpex implementation of Rambo fails validation
2 participants