Skip to content

get_minmax_offsets should always return data relative to data ptr#1092

Merged
oleksandr-pavlyk merged 1 commit intomasterfrom
fix-get-offsets
Mar 2, 2023
Merged

get_minmax_offsets should always return data relative to data ptr#1092
oleksandr-pavlyk merged 1 commit intomasterfrom
fix-get-offsets

Conversation

@oleksandr-pavlyk
Copy link
Copy Markdown
Contributor

This means that it should not be making call to UsmNDArray_GetOffset. This restores correctness to checks for array region overlapping.

  • 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?
  • If this PR is a work in progress, are you filing the PR as a draft?

This means that it should not be making call to UsmNDArray_GetOffset.
This restores correctness to checks for array region overlapping.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 2, 2023

@coveralls
Copy link
Copy Markdown
Collaborator

Coverage Status

Coverage: 82.316%. Remained the same when pulling a727866 on fix-get-offsets into b45e174 on master.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 2, 2023

Array API standard conformance tests for dpctl=0.14.1dev2=py310h76be34b_61 ran successfully.
Passed: 33
Failed: 801
Skipped: 280

@oleksandr-pavlyk oleksandr-pavlyk merged commit 6c629a8 into master Mar 2, 2023
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 2, 2023

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

@oleksandr-pavlyk oleksandr-pavlyk deleted the fix-get-offsets branch March 2, 2023 17:27
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 2, 2023

Array API standard conformance tests for dpctl=0.14.1dev2=py310h76be34b_61 ran successfully.
Passed: 33
Failed: 801
Skipped: 280

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.

2 participants