Skip to content

Refactor libtensor and backend into libtensor - #3131

Open
ndgrigorian wants to merge 3 commits into
masterfrom
feature/refactor-dpnp-backend-to-libtensor
Open

ndgrigorian wants to merge 3 commits into
masterfrom
feature/refactor-dpnp-backend-to-libtensor

Conversation

@ndgrigorian

@ndgrigorian ndgrigorian commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

This PR proposes a refactor merging the dpnp backend pybind11 extensions into libtensor, moving libtensor to the dpnp directory (out from dpnp/tensor) and merging kernels from the dpnp backend into libtensor

This makes libtensor the sole home of all kernels and Python bindings, such that users of the libtensor library have access to the full suite of functionality from Python or C++

Put on top of #3079 to avoid messy rebases when that PR is merged

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

@github-actions

Copy link
Copy Markdown
Contributor

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

@github-actions

github-actions Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Array API standard conformance tests for dpnp=0.22.0dev0=np2py314h8d9cdd5_9 ran successfully.
Passed: 1491
Failed: 0
Skipped: 6

ndgrigorian added a commit that referenced this pull request Oct 29, 2026
@coveralls

coveralls commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 83.464% (+0.8%) from 82.636% — feature/refactor-dpnp-backend-to-libtensor into master

@antonwolfy antonwolfy added this to the 0.22.0 release milestone Oct 29, 2026
ndgrigorian added a commit that referenced this pull request Oct 30, 2026
@ndgrigorian
ndgrigorian force-pushed the feature/refactor-dpnp-backend-to-libtensor branch from d6424db to 56d8d97 Compare October 30, 2026 07:55
@ndgrigorian
ndgrigorian marked this pull request as ready for review October 30, 2026 08:39
ndgrigorian added a commit that referenced this pull request Oct 31, 2026
@ndgrigorian
ndgrigorian force-pushed the feature/refactor-dpnp-backend-to-libtensor branch from 56d8d97 to c8c00ac Compare October 31, 2026 08:59
Base automatically changed from feature/implement-radix-select-topk to master October 31, 2026 11:31
- vm: check the 2-D binary contig dispatch table with both type ids,
  the row lookup could never be nullptr
- vm: fix fmax/fmin docstrings copied from fmod
- lapack: cast syevd eigenvalues output to RealT, fix gesvd typo and
  error message naming gesv
- ext: fix "c-contiguos" typo, drop unused DispatchTable2 getters and
  unused queue/reserve overloads of the local memory size helpers
- offset_utils: drop unused FourZeroOffsets_Indexer,
  FixedDimStridedIndexer and ThreeOffsets_FixedDimStridedIndexer
- cmake: drop the dead BUILD_DPNP_EXT_SYCL branch, unused variables,
  unused *_headers interface targets, a no-op PIC property, the empty
  COMPILE_DEFINITIONS loop and commented-out include dirs; stop adding
  -fno-fast-math twice to elementwise_functions_type_utils.cpp
@ndgrigorian
ndgrigorian force-pushed the feature/refactor-dpnp-backend-to-libtensor branch from c8c00ac to ff6221b Compare October 31, 2026 19:42

This branch has not been deployed

No deployments
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