Skip to content

Commit 0775690

Browse files
authored
Merge branch 'master' into numpy_pad_dict
2 parents 8bc118f + 9a9f5d0 commit 0775690

File tree

13 files changed

+1029
-71
lines changed

13 files changed

+1029
-71
lines changed

.github/workflows/cron-run-tests.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
name: Run tests suite
22
on:
3-
# For Branch-Protection check. Only the default branch is supported. See
4-
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
5-
branch_protection_rule:
3+
# To be able to be triggered manually
4+
workflow_dispatch:
65
# To guarantee Maintained check is occasionally updated. See
76
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
87
schedule:
98
- cron: '28 2 * * *'
10-
workflow_dispatch:
119

1210
permissions: read-all
1311

.github/workflows/pre-commit-autoupdate.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
name: Autoupdate pre-commit
22

33
on:
4-
# For Branch-Protection check. Only the default branch is supported. See
5-
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
6-
branch_protection_rule:
4+
# To be able to be triggered manually
5+
workflow_dispatch:
76
# To guarantee Maintained check is occasionally updated. See
87
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
98
schedule:
109
- cron: '28 2 * * 6' # Saturday at 02:28 UTC
11-
workflow_dispatch:
1210

1311
jobs:
1412
autoupdate:

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3737
* Reused dpctl tensor include to enable experimental SYCL namespace for complex types [#2546](https://github.com/IntelPython/dpnp/pull/2546)
3838
* Changed Windows-specific logic in dpnp initialization [#2553](https://github.com/IntelPython/dpnp/pull/2553)
3939
* 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)
4042
* Extended `dpnp.pad` to support `pad_width` keyword as a dictionary [#2535](https://github.com/IntelPython/dpnp/pull/2535)
4143

4244
### Deprecated

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/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);

0 commit comments

Comments
 (0)