Skip to content

Add TwoOffsets_CombinedIndexer, and UnpackedStridedIndexer #1162

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

Merged
merged 1 commit into from
Apr 8, 2023

Conversation

oleksandr-pavlyk
Copy link
Contributor

The TwoOffsets_CombinedIndexer takes two single offset indexers and combines their indexing results into a TwoOffsets struct.

The UnpackedStridedIndexer is a relative of StridedIndexer, except shapes and strides are provided as separate pointers. This increases its size, but may be useful to produce indexer that only computes the second offset using shape/strides stored in packed format for two-offset indexers.

These are going to be used in reduction kernels.

  • 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?

The TwoOffsets_CombinedIndexer takes two single offset indexers and
combines them into a TwoOffsets struct.

The UnpackedStridedIndexer is a relative of StridedIndexer, except
shapes and strides are provided as separate pointers. This increases
its size, but may be useful to produce indexer that only computes
the second offset using shape/strides stored in packed format for
two-offset indexers.

These are going to be used in reduction kernels.
@coveralls
Copy link
Collaborator

Coverage Status

Coverage: 83.204%. Remained the same when pulling b61dd32 on add-combined-indexer into a504e96 on master.

@github-actions
Copy link

github-actions bot commented Apr 7, 2023

@github-actions
Copy link

github-actions bot commented Apr 7, 2023

Array API standard conformance tests for dpctl=0.14.3dev0=py310h76be34b_89 ran successfully.
Passed: 47
Failed: 787
Skipped: 280

@oleksandr-pavlyk oleksandr-pavlyk merged commit 6998a8d into master Apr 8, 2023
@oleksandr-pavlyk oleksandr-pavlyk deleted the add-combined-indexer branch April 8, 2023 14:10
@github-actions
Copy link

github-actions bot commented Apr 8, 2023

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

@github-actions
Copy link

github-actions bot commented Apr 8, 2023

Array API standard conformance tests for dpctl=0.14.3dev0=py310h76be34b_91 ran successfully.
Passed: 46
Failed: 788
Skipped: 282

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.

3 participants