Skip to content

Conversation

@antonwolfy
Copy link
Contributor

@antonwolfy antonwolfy commented Jan 23, 2026

This PR performs rebase from the master branch.

  • 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 and others added 15 commits January 16, 2026 15:52
The PR closes #2084.

This PR improves implementation of `dpnp.linspace` function aligning it
with the latest changes added to NumPy.
The tests coverage is also extended to verify more use cases.
The PR adds passing the buffer offset to `usm_ndarray` constructor.

This is fast and straightforward solution. The complete fix needs to be
implemented in dpctl in scope of
[dpctl#2226](IntelPython/dpctl#2226).
This PR updates the `.pre-commit-config.yaml` using `pre-commit
autoupdate`.
This PR rewrites `dpnp.fix` to reuse `dpnp.trunc` internally removing
the backend implementation of `dpnp.fix`
A warning that `python setup.py develop` is deprecated and will no
longer be supported at the end of October, 2025 has been ongoing for
some time when using dpnp build driver scripts, and can be seen in the
CI.

The PR proposes instead relying on `pip` for installing dpnp in scripts,
and reworks the scripts to maintain use of `scikit-build`.
In the future, this will also simplify a transition to
`scikit-build-core`.

This PR also introduces options
* `--clean` and `--skip-editable` to `build_locally` driver
* `--clean` and `--skip-pytest` to `gen_coverage` driver

Also it includes update of the documentation with new build instruction.
The PR proposes temporary disable tests with `dpnp.cumlogsumexp` when
`axis is None` and running on PTL GPU device.
The tests must be enabled back once the issue in internal CI is
resolved.
The PR removes pytest configuration from `pyproject.toml` since it was
never used due to invalid name used `tool.pytest.ini.options` which
never supported by pytest.

The latest pytest warns about that explicitly:
> PytestConfigWarning: Unknown config option: ini

since the correct name is `tool.pytest.ini_options`.

The configuration might be returned back to `pyproject.toml` when really
needed.
The PR includes
* migration of some tests from unittest to pytest
* updates in FFT tests
* new tests for `random.choice`

This PR is intended to reflect alignment with the recent changes in
origin repo of third party tests.
The PR bumps dependency on dpctl package.
The PR extends docstrings to clarify behavior on repeated values passed
in `axes` to `tensordot` functions.
Also an explicit test was added to validate the exception raised on the
repeated axes.
#2723)

The PR closes #2352 and closes #2353.

This PR improves implementation of `dpnp.logspace` and `dpnp.geomspace`
functions based on the latest changes added to NumPy.
And it also updates logic of how input array_like arguments handled to
follow compute follows data approach.
If no `device` or `sycl_queue` keyword passed, then an array creation
function should allocate result based on input arguments (like `start`
and `stop`).
Otherwise all input arrays need to be moved to the specified queue and
resulting array must be allocated there.
This PR deprecates `dpnp.fix()` in favor of `dpnp.trunc` (following
NumPy 2.5)
It adds `DPNPDeprecatedUnaryFunc` wrapper and updates tests to ignore
DeprecationWarning

Co-authored-by: Anton <100830759+antonwolfy@users.noreply.github.com>
This PR reverts #2708 due to
[dpctl-2213](IntelPython/dpctl#2213) has been
resolved
@antonwolfy antonwolfy self-assigned this Jan 23, 2026
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 23, 2026

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

@github-actions
Copy link
Contributor

github-actions bot commented Jan 23, 2026

Array API standard conformance tests for dpnp=0.20.0dev2=py313h509198e_2 ran successfully.
Passed: 1227
Failed: 0
Skipped: 9

@antonwolfy antonwolfy marked this pull request as ready for review January 24, 2026 12:00
This PR updates the `.pre-commit-config.yaml` using `pre-commit
autoupdate`.
@antonwolfy antonwolfy closed this Jan 24, 2026
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