Skip to content

Commit 4bc7f65

Browse files
authored
Merge branch 'master' into remove-excess-triggers
2 parents 3cd99ce + c9b9f70 commit 4bc7f65

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+1319
-63
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
* Added `timeout-minutes` property to GitHub jobs [#2526](https://github.com/IntelPython/dpnp/pull/2526)
1616
* Added implementation of `dpnp.ndarray.data` and `dpnp.ndarray.data.ptr` attributes [#2521](https://github.com/IntelPython/dpnp/pull/2521)
1717
* Added `dpnp.ndarray.__contains__` method [#2534](https://github.com/IntelPython/dpnp/pull/2534)
18+
* Added implementation of `dpnp.linalg.lu_factor` (SciPy-compatible) [#2557](https://github.com/IntelPython/dpnp/pull/2557), [#2565](https://github.com/IntelPython/dpnp/pull/2565)
1819

1920
### Changed
2021

@@ -35,6 +36,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3536
* FFT module is updated to perform in-place FFT in intermediate steps of ND FFT [#2543](https://github.com/IntelPython/dpnp/pull/2543)
3637
* Reused dpctl tensor include to enable experimental SYCL namespace for complex types [#2546](https://github.com/IntelPython/dpnp/pull/2546)
3738
* Changed Windows-specific logic in dpnp initialization [#2553](https://github.com/IntelPython/dpnp/pull/2553)
39+
* Added missing includes to files in ufunc and VM pybind11 extensions [#2571](https://github.com/IntelPython/dpnp/pull/2571)
40+
* Refactored backend implementation of `dpnp.linalg.solve` to use oneMKL LAPACK `gesv` directly [#2558](https://github.com/IntelPython/dpnp/pull/2558)
41+
* Improved performance of `dpnp.isclose` function by implementing a dedicated kernel for scalar `rtol` and `atol` arguments [#2540](https://github.com/IntelPython/dpnp/pull/2540)
3842

3943
### Deprecated
4044

dpnp/backend/extensions/common/ext/details/validation_utils_internal.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,10 @@ inline void check_no_overlap(const array_ptr &input,
114114
}
115115

116116
const auto &overlap = dpctl::tensor::overlap::MemoryOverlap();
117+
const auto &same_logical_tensors =
118+
dpctl::tensor::overlap::SameLogicalTensors();
117119

118-
if (overlap(*input, *output)) {
120+
if (overlap(*input, *output) && !same_logical_tensors(*input, *output)) {
119121
throw py::value_error(name_of(input, names) +
120122
" has overlapping memory segments with " +
121123
name_of(output, names));

dpnp/backend/extensions/ufunc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ set(_elementwise_sources
3737
${CMAKE_CURRENT_SOURCE_DIR}/elementwise_functions/heaviside.cpp
3838
${CMAKE_CURRENT_SOURCE_DIR}/elementwise_functions/i0.cpp
3939
${CMAKE_CURRENT_SOURCE_DIR}/elementwise_functions/interpolate.cpp
40+
${CMAKE_CURRENT_SOURCE_DIR}/elementwise_functions/isclose.cpp
4041
${CMAKE_CURRENT_SOURCE_DIR}/elementwise_functions/lcm.cpp
4142
${CMAKE_CURRENT_SOURCE_DIR}/elementwise_functions/ldexp.cpp
4243
${CMAKE_CURRENT_SOURCE_DIR}/elementwise_functions/logaddexp2.cpp

dpnp/backend/extensions/ufunc/elementwise_functions/bitwise_count.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
// THE POSSIBILITY OF SUCH DAMAGE.
2424
//*****************************************************************************
2525

26+
#include <cstdint>
27+
#include <type_traits>
28+
#include <vector>
29+
2630
#include <sycl/sycl.hpp>
2731

2832
#include "dpctl4pybind11.hpp"

dpnp/backend/extensions/ufunc/elementwise_functions/common.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include "heaviside.hpp"
3838
#include "i0.hpp"
3939
#include "interpolate.hpp"
40+
#include "isclose.hpp"
4041
#include "lcm.hpp"
4142
#include "ldexp.hpp"
4243
#include "logaddexp2.hpp"
@@ -66,6 +67,7 @@ void init_elementwise_functions(py::module_ m)
6667
init_heaviside(m);
6768
init_i0(m);
6869
init_interpolate(m);
70+
init_isclose(m);
6971
init_lcm(m);
7072
init_ldexp(m);
7173
init_logaddexp2(m);

dpnp/backend/extensions/ufunc/elementwise_functions/degrees.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
// THE POSSIBILITY OF SUCH DAMAGE.
2424
//*****************************************************************************
2525

26+
#include <type_traits>
27+
#include <vector>
28+
2629
#include <sycl/sycl.hpp>
2730

2831
#include "dpctl4pybind11.hpp"

dpnp/backend/extensions/ufunc/elementwise_functions/fabs.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
// THE POSSIBILITY OF SUCH DAMAGE.
2424
//*****************************************************************************
2525

26+
#include <type_traits>
27+
#include <vector>
28+
2629
#include <sycl/sycl.hpp>
2730

2831
#include "dpctl4pybind11.hpp"

dpnp/backend/extensions/ufunc/elementwise_functions/fix.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
// THE POSSIBILITY OF SUCH DAMAGE.
2424
//*****************************************************************************
2525

26+
#include <type_traits>
27+
#include <vector>
28+
2629
#include <sycl/sycl.hpp>
2730

2831
#include "dpctl4pybind11.hpp"

dpnp/backend/extensions/ufunc/elementwise_functions/float_power.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
// THE POSSIBILITY OF SUCH DAMAGE.
2424
//*****************************************************************************
2525

26+
#include <complex>
27+
#include <type_traits>
28+
#include <vector>
29+
2630
#include <sycl/sycl.hpp>
2731

2832
#include "dpctl4pybind11.hpp"

dpnp/backend/extensions/ufunc/elementwise_functions/fmax.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
// THE POSSIBILITY OF SUCH DAMAGE.
2424
//*****************************************************************************
2525

26+
#include <vector>
27+
2628
#include <sycl/sycl.hpp>
2729

2830
#include "dpctl4pybind11.hpp"

0 commit comments

Comments
 (0)