Skip to content

Add implementation of dpnp.ndarray.data and dpnp.ndarray.data.ptr attributes #2521

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Jul 10, 2025

This PR adds implementation of dpnp.ndarray.data and dpnp.ndarray.data.ptr attributes.
The tests are updated to use the new attributes where applicable.

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

@antonwolfy antonwolfy added this to the 0.19.0 release milestone Jul 10, 2025
@antonwolfy antonwolfy self-assigned this Jul 10, 2025
Copy link
Contributor

View rendered docs @ https://intelpython.github.io/dpnp/pull/2521/index.html

Copy link
Contributor

github-actions bot commented Jul 10, 2025

Array API standard conformance tests for dpnp=0.19.0dev1=py313h509198e_13 ran successfully.
Passed: 1227
Failed: 0
Skipped: 9

@antonwolfy antonwolfy force-pushed the add-data-attribute branch from 3b9bdfe to 6f15dff Compare July 10, 2025 16:31
@coveralls
Copy link
Collaborator

coveralls commented Jul 10, 2025

Coverage Status

coverage: 72.114% (+0.03%) from 72.088%
when pulling 8a79cff on add-data-attribute
into 425ec0c on master.

@antonwolfy antonwolfy linked an issue Jul 11, 2025 that may be closed by this pull request
@antonwolfy antonwolfy marked this pull request as ready for review July 11, 2025 11:31
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.

[dpnp.array] Attributes .data and .data.ptr for dpnp array
2 participants