René's URL Explorer Experiment


Title: Technical debt changes in indexing functions by ndgrigorian · Pull Request #2012 · IntelPython/dpctl · GitHub

Open Graph Title: Technical debt changes in indexing functions by ndgrigorian · Pull Request #2012 · IntelPython/dpctl

X Title: Technical debt changes in indexing functions by ndgrigorian · Pull Request #2012 · IntelPython/dpctl

Description: 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?

Open Graph Description: 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 mac...

X Description: 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 mac...

Opengraph URL: https://github.com/IntelPython/dpctl/pull/2012

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:06a865f1-545e-58e1-4631-c2835096f1d1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE4A8:F0B17:91C737:CDA8D4:696F3DFF
html-safe-nonce286013b022cc93731c0683132409e16d2e37c28819ce7e760b72f606428f1677
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEE4OkYwQjE3OjkxQzczNzpDREE4RDQ6Njk2RjNERkYiLCJ2aXNpdG9yX2lkIjoiODExMDcyNTM0ODU4OTUxODMzNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac95eb5c6718b08c3b77b1076c731a802623d47eb092a131d06ab69882a4a31f64
hovercard-subject-tagpull_request:2350587740
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/IntelPython/dpctl/pull/2012/files
twitter:imagehttps://avatars.githubusercontent.com/u/46709016?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/46709016?s=400&v=4
og:image:altThis 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 mac...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/IntelPython/dpctl git https://github.com/IntelPython/dpctl.git
octolytics-dimension-user_id20491374
octolytics-dimension-user_loginIntelPython
octolytics-dimension-repository_id279842328
octolytics-dimension-repository_nwoIntelPython/dpctl
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id279842328
octolytics-dimension-repository_network_root_nwoIntelPython/dpctl
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release39aed5006635ab6f45e6b77d23e73b08a00272a3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FIntelPython%2Fdpctl%2Fpull%2F2012%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2FIntelPython%2Fdpctl%2Fpull%2F2012%2Ffiles
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=IntelPython%2Fdpctl
Reloadhttps://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files
Reloadhttps://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files
Reloadhttps://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files
IntelPython https://patch-diff.githubusercontent.com/IntelPython
dpctlhttps://patch-diff.githubusercontent.com/IntelPython/dpctl
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2FIntelPython%2Fdpctl
Fork 32 https://patch-diff.githubusercontent.com/login?return_to=%2FIntelPython%2Fdpctl
Star 121 https://patch-diff.githubusercontent.com/login?return_to=%2FIntelPython%2Fdpctl
Code https://patch-diff.githubusercontent.com/IntelPython/dpctl
Issues 51 https://patch-diff.githubusercontent.com/IntelPython/dpctl/issues
Pull requests 10 https://patch-diff.githubusercontent.com/IntelPython/dpctl/pulls
Discussions https://patch-diff.githubusercontent.com/IntelPython/dpctl/discussions
Actions https://patch-diff.githubusercontent.com/IntelPython/dpctl/actions
Projects 0 https://patch-diff.githubusercontent.com/IntelPython/dpctl/projects
Wiki https://patch-diff.githubusercontent.com/IntelPython/dpctl/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/IntelPython/dpctl/security
Please reload this pagehttps://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files
Insights https://patch-diff.githubusercontent.com/IntelPython/dpctl/pulse
Code https://patch-diff.githubusercontent.com/IntelPython/dpctl
Issues https://patch-diff.githubusercontent.com/IntelPython/dpctl/issues
Pull requests https://patch-diff.githubusercontent.com/IntelPython/dpctl/pulls
Discussions https://patch-diff.githubusercontent.com/IntelPython/dpctl/discussions
Actions https://patch-diff.githubusercontent.com/IntelPython/dpctl/actions
Projects https://patch-diff.githubusercontent.com/IntelPython/dpctl/projects
Wiki https://patch-diff.githubusercontent.com/IntelPython/dpctl/wiki
Security https://patch-diff.githubusercontent.com/IntelPython/dpctl/security
Insights https://patch-diff.githubusercontent.com/IntelPython/dpctl/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2FIntelPython%2Fdpctl%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2FIntelPython%2Fdpctl%2Fissues%2Fnew%2Fchoose
ndgrigorianhttps://patch-diff.githubusercontent.com/ndgrigorian
masterhttps://patch-diff.githubusercontent.com/IntelPython/dpctl/tree/master
technical-debt-indexing-fnshttps://patch-diff.githubusercontent.com/IntelPython/dpctl/tree/technical-debt-indexing-fns
Conversation 5 https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012
Commits 2 https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/commits
Checks 34 https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/checks
Files changed https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files
Please reload this pagehttps://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files
Technical debt changes in indexing functions https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#top
Show all changes 2 commits https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files
89ec213 Rename Python bindings for integer indexing ndgrigorian Jan 14, 2025 https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/commits/89ec2136bd23b332e3bf0bab6496a604a9aea6fa
d409117 Change integer indexing mode dispatching ndgrigorian Feb 22, 2025 https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/commits/d409117d8d2b91992a5b797c3000bdf0c101d6a1
Clear filters https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files
Please reload this pagehttps://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files
Please reload this pagehttps://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files
integer_advanced_indexing.cpp https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-14dfd87592cbd7def260918f31338e0a43d3e4608f234f01ff776b0e1d072fc0
integer_advanced_indexing.hpp https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-06a11905148463983365e508fd15dc8d102d0c6f809b59e2a99421597df32f24
tensor_ctors.cpp https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-744074a3ef6585f36058cce2ef9c477a83cbbd382502ca4c2f720faaae5b9f3a
https://patch-diff.githubusercontent.com/IntelPython/dpctl/blob/master/.github/CODEOWNERS#L1
dpctl/tensor/libtensor/source/integer_advanced_indexing.cpphttps://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-14dfd87592cbd7def260918f31338e0a43d3e4608f234f01ff776b0e1d072fc0
View file https://patch-diff.githubusercontent.com/IntelPython/dpctl/blob/d409117d8d2b91992a5b797c3000bdf0c101d6a1/dpctl/tensor/libtensor/source/integer_advanced_indexing.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-14dfd87592cbd7def260918f31338e0a43d3e4608f234f01ff776b0e1d072fc0
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-14dfd87592cbd7def260918f31338e0a43d3e4608f234f01ff776b0e1d072fc0
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-14dfd87592cbd7def260918f31338e0a43d3e4608f234f01ff776b0e1d072fc0
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-14dfd87592cbd7def260918f31338e0a43d3e4608f234f01ff776b0e1d072fc0
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-14dfd87592cbd7def260918f31338e0a43d3e4608f234f01ff776b0e1d072fc0
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-14dfd87592cbd7def260918f31338e0a43d3e4608f234f01ff776b0e1d072fc0
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-14dfd87592cbd7def260918f31338e0a43d3e4608f234f01ff776b0e1d072fc0
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-14dfd87592cbd7def260918f31338e0a43d3e4608f234f01ff776b0e1d072fc0
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-14dfd87592cbd7def260918f31338e0a43d3e4608f234f01ff776b0e1d072fc0
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-14dfd87592cbd7def260918f31338e0a43d3e4608f234f01ff776b0e1d072fc0
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-14dfd87592cbd7def260918f31338e0a43d3e4608f234f01ff776b0e1d072fc0
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-14dfd87592cbd7def260918f31338e0a43d3e4608f234f01ff776b0e1d072fc0
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-14dfd87592cbd7def260918f31338e0a43d3e4608f234f01ff776b0e1d072fc0
https://patch-diff.githubusercontent.com/IntelPython/dpctl/blob/master/.github/CODEOWNERS#L1
dpctl/tensor/libtensor/source/integer_advanced_indexing.hpphttps://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-06a11905148463983365e508fd15dc8d102d0c6f809b59e2a99421597df32f24
View file https://patch-diff.githubusercontent.com/IntelPython/dpctl/blob/d409117d8d2b91992a5b797c3000bdf0c101d6a1/dpctl/tensor/libtensor/source/integer_advanced_indexing.hpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-06a11905148463983365e508fd15dc8d102d0c6f809b59e2a99421597df32f24
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-06a11905148463983365e508fd15dc8d102d0c6f809b59e2a99421597df32f24
https://patch-diff.githubusercontent.com/IntelPython/dpctl/blob/master/.github/CODEOWNERS#L1
dpctl/tensor/libtensor/source/tensor_ctors.cpphttps://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-744074a3ef6585f36058cce2ef9c477a83cbbd382502ca4c2f720faaae5b9f3a
View file https://patch-diff.githubusercontent.com/IntelPython/dpctl/blob/d409117d8d2b91992a5b797c3000bdf0c101d6a1/dpctl/tensor/libtensor/source/tensor_ctors.cpp
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-744074a3ef6585f36058cce2ef9c477a83cbbd382502ca4c2f720faaae5b9f3a
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-744074a3ef6585f36058cce2ef9c477a83cbbd382502ca4c2f720faaae5b9f3a
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-744074a3ef6585f36058cce2ef9c477a83cbbd382502ca4c2f720faaae5b9f3a
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-744074a3ef6585f36058cce2ef9c477a83cbbd382502ca4c2f720faaae5b9f3a
https://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files#diff-744074a3ef6585f36058cce2ef9c477a83cbbd382502ca4c2f720faaae5b9f3a
Please reload this pagehttps://patch-diff.githubusercontent.com/IntelPython/dpctl/pull/2012/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.