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

Technical debt changes in indexing functions #2012

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ndgrigorian
Copy link
Collaborator

@ndgrigorian ndgrigorian commented Feb 21, 2025

This PR cleans up indexing functions

  • Renames Python bindings from usm_ndarray_take and usm_ndarray_put to py_take and py_put to improve consistency with the rest of dpctl
  • Removes indexing mode macros, opting for a ternary check instead
  • Refactors to break up _populate_kernel_params internal function to improve code readability [WIP]
  • 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?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?
  • If this PR is a work in progress, are you opening the PR as a draft?

Aligns with most non-constructors
@ndgrigorian ndgrigorian force-pushed the technical-debt-indexing-fns branch 3 times, most recently from 4802fbd to 7dfd4b9 Compare February 21, 2025 22:02
Copy link

Copy link

Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_537 ran successfully.
Passed: 894
Failed: 2
Skipped: 118

@ndgrigorian ndgrigorian force-pushed the technical-debt-indexing-fns branch from 7dfd4b9 to 0d7baf0 Compare February 22, 2025 01:22
Copy link

Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_537 ran successfully.
Passed: 895
Failed: 1
Skipped: 118

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 88.233%. remained the same
when pulling 0d7baf0 on technical-debt-indexing-fns
into 7e2b69e on master.

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