Repository navigation
Remove the legacy backend #3163
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
base: feature/device-rng-random-state
Are you sure you want to change the base?
Changes from all commits
98afec4
5671b36
1c93ff0
1756643
9427b74
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -38,6 +38,7 @@ This release drops support for Python 3.10, making Python 3.11 the minimum requi | |
| * Changed `dpnp.median`, `dpnp.nanmedian` and `dpnp.partition` with a single `kth` to use a radix select instead of a full sort for all but complex data types and, on a GPU, `dpnp.partition` of rows of 65 to 128 elements of 8-byte integers [#3138](https://github.com/IntelPython/dpnp/pull/3138) | ||
| * Improved performance of `dpnp.top_k` and `dpnp.tensor.top_k` on a GPU for batches of rows of 65536 to about 10^6 elements that occupy it with a work-group per row [#3138](https://github.com/IntelPython/dpnp/pull/3138) | ||
| * Reimplemented `dpnp.random.RandomState` and the `dpnp.random` functions on device kernels, drawing on the queue of the generator. `device`, `usm_type` and `sycl_queue` are now keyword-only, `usm_type` defaults to the USM type of the array parameters, `randint(dtype=int)` returns `int64` and `shuffle` requires a `dpnp.ndarray` or `usm_ndarray` [#3162](https://github.com/IntelPython/dpnp/pull/3162) | ||
| * Moved the vendored CMake modules of `IntelSYCL`, `MKL`, `TBB` and `oneDPL` from `dpnp/backend/cmake/Modules` to `cmake/Modules` [#3163](https://github.com/IntelPython/dpnp/pull/3163) | ||
|
|
||
| ### Deprecated | ||
|
|
||
|
|
@@ -52,6 +53,10 @@ This release drops support for Python 3.10, making Python 3.11 the minimum requi | |
| * Dropped support for Python 3.10 [#3173](https://github.com/IntelPython/dpnp/pull/3173) | ||
| * Removed the `USE_GROUP_LOAD_STORE` macro from the libtensor header `utils/sycl_utils.hpp`, so `sub_group_load` and `sub_group_store` always use the `sycl_ext_oneapi_group_load_store` extension; the `sycl::sub_group` member load/store fallback it selected does not compile with DPC++ 2026.0, the minimum supported compiler [#3174](https://github.com/IntelPython/dpnp/pull/3174) | ||
| * Removed the legacy implementation of `dpnp.partition` from the backend [#3138](https://github.com/IntelPython/dpnp/pull/3138) | ||
| * Removed the legacy backend implementation of `dpnp.random`, which no longer needs `onemkl-sycl-rng` [#3163](https://github.com/IntelPython/dpnp/pull/3163) | ||
| * Removed the legacy `dpnp_backend_c` library with its GTest suite and the `DPNP_BACKEND_TESTS` CMake option, the Cython module `dpnp.dpnp_algo.dpnp_algo` built on it, and the NumPy fallback helper `call_origin` [#3163](https://github.com/IntelPython/dpnp/pull/3163) | ||
| * Removed `dpnp.get_dpnp_descriptor` and the `dpnp.config.__DPNP_ORIGIN__` setting, set by the `DPNP_ORIGIN` environment variable, which only it read [#3163](https://github.com/IntelPython/dpnp/pull/3163) | ||
| * Removed the `dpnp.config.__DPNP_RAISE_EXCEPION_ON_NUMPY_FALLBACK__` setting, set by the `DPNP_RAISE_EXCEPION_ON_NUMPY_FALLBACK` environment variable, which nothing reads since dpnp no longer falls back on NumPy [#3163](https://github.com/IntelPython/dpnp/pull/3163) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Following up on #3163 (comment): 5671b36 now removes import pytest, dpnp
with pytest.MonkeyPatch.context() as mp:
mp.setattr(dpnp.config, "__DPNP_RAISE_EXCEPION_ON_NUMPY_FALLBACK__", 0)
# AttributeError: <module 'dpnp.config' ...> has no attribute '__DPNP_RAISE_EXCEPION_ON_NUMPY_FALLBACK__'
# #3162 head: no errorCould both go into |
||
|
|
||
| ### Fixed | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,7 +42,6 @@ option( | |
| "Build dpnp tensor pybind11 offloading extensions with coverage instrumentation" | ||
| OFF | ||
| ) | ||
| option(DPNP_BACKEND_TESTS "Enable building of DPNP backend test suite" OFF) | ||
| option( | ||
| DPNP_WITH_REDIST | ||
| "Build DPNP assuming DPC++ redistributable is installed into Python prefix" | ||
|
|
@@ -70,7 +69,7 @@ set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH) | |
| # 7. CMake variables defined in the Platform files for the current system (like in /usr/local for Linux) | ||
| # 8. Paths stored in the CMake System Package Registry | ||
| # 9. Paths specified by the PATHS option (assumed hard-coded guesses) | ||
| set(path_to_cmake_dir ${CMAKE_SOURCE_DIR}/dpnp/backend/cmake/Modules) | ||
| set(path_to_cmake_dir ${CMAKE_SOURCE_DIR}/cmake/Modules) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: Nothing links the |
||
| # TODO: use the commented logic once the compiler resolves CMake issue CMPLRLLVM-73484 | ||
| # find_package(IntelSYCL REQUIRED PATHS ${path_to_cmake_dir}) | ||
| find_package(IntelSYCL QUIET) | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,7 +39,7 @@ | |
| dpctlpath = os.path.dirname(dpctl.__file__) | ||
|
|
||
| # For Windows OS with Python >= 3.7, it is required to explicitly define a path | ||
| # where to search for DLLs towards both DPNP backend and DPCTL Sycl interface, | ||
| # where to search for the DLLs of DPNP and of the DPCTL Sycl interface, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: After this PR nothing installs a DLL into |
||
| # otherwise DPNP import will be failing. This is because the libraries | ||
| # are not installed under any of default paths where Python is searching. | ||
|
|
||
|
|
@@ -65,6 +65,7 @@ | |
| from .dpnp_array import dpnp_array as ndarray | ||
| from .dpnp_array_api_info import __array_namespace_info__ | ||
| from ._version import get_versions | ||
| from . import config as config | ||
| from . import exceptions as exceptions | ||
| from . import fft as fft | ||
| from . import lib as lib | ||
|
|
@@ -576,7 +577,6 @@ | |
| check_limitations, | ||
| check_supported_arrays_type, | ||
| default_float_type, | ||
| get_dpnp_descriptor, | ||
| get_normalized_queue_device, | ||
| get_result_array, | ||
| get_usm_ndarray, | ||
|
|
@@ -1050,7 +1050,6 @@ | |
| "check_limitations", | ||
| "check_supported_arrays_type", | ||
| "default_float_type", | ||
| "get_dpnp_descriptor", | ||
| "get_normalized_queue_device", | ||
| "get_result_array", | ||
| "get_usm_ndarray", | ||
|
|
||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: With these steps gone,
backend_doc/is no longer built, but publishing to.keeps the files already on gh-pages. So https://intelpython.github.io/dpnp/backend_doc/ will keep serving the docs of the removed backend, with nothing linking to it. Could it be deleted from gh-pages once this is merged?