Skip to content

Conversation

@ndgrigorian
Copy link
Collaborator

Moves order validation to the start of _from_input_shape_strides to guarantee it's valid even if unused.

Closes #1724

  • Have you provided a meaningful PR description?
  • 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?
  • Have you checked performance impact of proposed changes?
  • If this PR is a work in progress, are you opening the PR as a draft?

Moves `order` validation to the start of `_from_input_shape_strides`
@github-actions
Copy link

github-actions bot commented Jul 9, 2024

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞

@github-actions
Copy link

github-actions bot commented Jul 9, 2024

Array API standard conformance tests for dpctl=0.18.0dev0=py310h15de555_90 ran successfully.
Passed: 894
Failed: 15
Skipped: 105

@coveralls
Copy link
Collaborator

coveralls commented Jul 9, 2024

Coverage Status

coverage: 87.967% (-0.001%) from 87.968%
when pulling 19b5735 on usm-array-order-validation-fix
into a674d62 on master.

@github-actions
Copy link

github-actions bot commented Jul 9, 2024

Array API standard conformance tests for dpctl=0.18.0dev0=py310h15de555_91 ran successfully.
Passed: 894
Failed: 15
Skipped: 105

@ndgrigorian ndgrigorian requested a review from antonwolfy July 9, 2024 08:42
@ndgrigorian ndgrigorian marked this pull request as ready for review July 9, 2024 08:42
Copy link
Collaborator

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've checked with dpnp tests and all of them are passing with that PR.
The initial issue is also resolved.

Thank you @ndgrigorian for implementing the fix.

@ndgrigorian ndgrigorian merged commit 1cd4fe3 into master Jul 10, 2024
@ndgrigorian ndgrigorian deleted the usm-array-order-validation-fix branch July 10, 2024 15:18
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.

dpt.usm_ndarray does not validate order argument when strides keyword is passed

3 participants