Skip to content

Move usm_ndarray into dpctl_ext.tensor#2807

Open
vlad-perevezentsev wants to merge 30 commits intofinalize_functional_migrationfrom
move_usm_ndarray
Open

Move usm_ndarray into dpctl_ext.tensor#2807
vlad-perevezentsev wants to merge 30 commits intofinalize_functional_migrationfrom
move_usm_ndarray

Conversation

@vlad-perevezentsev
Copy link
Contributor

@vlad-perevezentsev vlad-perevezentsev commented Mar 6, 2026

This PR proposes to migrate the tensor interface (usm_ndarray, dlpack, flags) into dpctl_ext/tensor making dpnp independent of dpctl's tensor module.

Updates:

  • Introduce dpctl_ext_capi.h
  • Implement a clean CMake interface library DpctlExtCAPI to properly propagate generated headers to consumers
  • Update remaining imports from dpctl.tensor to dpctl_ext.tensor
  • Link all backend extensions against DpctlExtCAPI to ensure consistent access to the C-API
  • 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?

@vlad-perevezentsev vlad-perevezentsev self-assigned this Mar 6, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

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

@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

Array API standard conformance tests for dpnp=0.20.0dev3=py313h509198e_262 ran successfully.
Passed: 1355
Failed: 2
Skipped: 16

@vlad-perevezentsev vlad-perevezentsev marked this pull request as ready for review March 17, 2026 12:28
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.

1 participant