Skip to content

Commit a3d31c8

Browse files
Merge master into impl_lu_factor
2 parents 506d24d + 230ba6a commit a3d31c8

File tree

14 files changed

+155
-107
lines changed

14 files changed

+155
-107
lines changed

.github/workflows/check-onemath.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
fetch-depth: 0
8484

8585
- name: Download artifact
86-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
86+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
8787
with:
8888
name: ${{ env.environment-file-name }}
8989
path: ${{ env.environment-file-loc }}
@@ -175,7 +175,7 @@ jobs:
175175
fetch-depth: 0
176176

177177
- name: Download artifact
178-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
178+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
179179
with:
180180
name: ${{ env.environment-file-name }}
181181
path: ${{ env.environment-file-loc }}

.github/workflows/conda-package.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ jobs:
146146
path: ${{ env.dpnp-repo-path }}
147147

148148
- name: Download artifact
149-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
149+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
150150
with:
151151
name: ${{ env.package-name }} ${{ runner.os }} Python ${{ matrix.python }}
152152
path: ${{ env.pkg-path-in-channel }}
@@ -274,7 +274,7 @@ jobs:
274274
path: ${{ env.dpnp-repo-path }}
275275

276276
- name: Download artifact
277-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
277+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
278278
with:
279279
name: ${{ env.package-name }} ${{ runner.os }} Python ${{ matrix.python }}
280280
path: ${{ env.pkg-path-in-channel }}
@@ -430,12 +430,12 @@ jobs:
430430
fetch-depth: ${{ env.fetch-depth }}
431431

432432
- name: Download artifact
433-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
433+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
434434
with:
435435
name: ${{ env.package-name }} ${{ runner.os }} Python ${{ matrix.python }}
436436

437437
- name: Download wheels artifact
438-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
438+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
439439
with:
440440
name: ${{ env.package-name }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
441441

@@ -519,7 +519,7 @@ jobs:
519519
path: ${{ env.dpnp-repo-path }}
520520

521521
- name: Download artifact
522-
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
522+
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
523523
with:
524524
name: ${{ env.package-name }} ${{ runner.os }} Python ${{ env.python-ver }}
525525
path: ${{ env.pkg-path-in-channel }}

.github/workflows/openssf-scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ jobs:
6969

7070
# Upload the results to GitHub's code scanning dashboard.
7171
- name: "Upload to code-scanning"
72-
uses: github/codeql-action/upload-sarif@4e828ff8d448a8a6e532957b1811f387a63867e8 # v3.29.4
72+
uses: github/codeql-action/upload-sarif@76621b61decf072c1cee8dd1ce2d2a82d33c17ed # v3.29.8
7373
with:
7474
sarif_file: results.sarif
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Autoupdate pre-commit
2+
3+
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:
7+
# To guarantee Maintained check is occasionally updated. See
8+
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
9+
schedule:
10+
- cron: '28 2 * * 6' # Saturday at 02:28 UTC
11+
workflow_dispatch:
12+
13+
jobs:
14+
autoupdate:
15+
name: Autoupdate
16+
17+
runs-on: ubuntu-latest
18+
timeout-minutes: 10
19+
20+
steps:
21+
- name: Checkout DPNP repo
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
23+
24+
- name: Set up python
25+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
26+
with:
27+
python-version: '3.13'
28+
29+
- name: Install pre-commit
30+
run: pip install pre-commit
31+
32+
- name: Run pre-commit autoupdate
33+
run: pre-commit autoupdate
34+
35+
- name: Create a PR with autoupdate changes
36+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e #v7.0.8
37+
with:
38+
commit-message: 'chore: update pre-commit hooks'
39+
add-paths: .pre-commit-config.yaml
40+
branch: 'bot/pre-commit-autoupdate'
41+
delete-branch: true
42+
title: Weekly pre-commit autoupdate
43+
body: |
44+
This PR updates the `.pre-commit-config.yaml` using `pre-commit autoupdate`.
45+
labels: autoupdate

.pre-commit-config.yaml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,8 @@
1-
# See https://pre-commit.ci for more details
2-
ci:
3-
autofix_commit_msg: 'style: pre-commit fixes'
4-
autoupdate_commit_msg: 'chore: update pre-commit hooks'
5-
autoupdate_schedule: weekly
6-
71
# See https://pre-commit.com for more information
82
# See https://pre-commit.com/hooks.html for more hooks
93
repos:
104
- repo: https://github.com/PyCQA/bandit
11-
rev: '1.8.3'
5+
rev: '1.8.6'
126
hooks:
137
- id: bandit
148
pass_filenames: false
@@ -83,7 +77,7 @@ repos:
8377
name: isort (pyi)
8478
types: [pyi]
8579
- repo: https://github.com/pycqa/flake8
86-
rev: 7.2.0
80+
rev: 7.3.0
8781
hooks:
8882
- id: flake8
8983
args: ["--config=.flake8"]
@@ -96,7 +90,7 @@ repos:
9690
- id: clang-format
9791
args: ["-i"]
9892
- repo: https://github.com/gitleaks/gitleaks
99-
rev: v8.26.0
93+
rev: v8.28.0
10094
hooks:
10195
- id: gitleaks
10296
- repo: https://github.com/jumanjihouse/pre-commit-hooks
@@ -121,7 +115,7 @@ repos:
121115
]
122116
files: '^dpnp/(dpnp_iface.*|fft|linalg|dpnp_array)'
123117
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
124-
rev: v2.14.0
118+
rev: v2.15.0
125119
hooks:
126120
- id: pretty-format-toml
127121
args: [--autofix]

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3131
* Replaced the use of `numpy.testing.suppress_warnings` with appropriate calls from the warnings module [#2529](https://github.com/IntelPython/dpnp/pull/2529)
3232
* Improved documentations of `dpnp.ndarray` class and added a page with description of supported constants [#2422](https://github.com/IntelPython/dpnp/pull/2422)
3333
* Updated `dpnp.size` to accept tuple of ints for `axes` argument [#2536](https://github.com/IntelPython/dpnp/pull/2536)
34+
* Replaced `ci` section in `.pre-commit-config.yaml` with a new GitHub workflow with scheduled run to autoupdate the `pre-commit` configuration [#2542](https://github.com/IntelPython/dpnp/pull/2542)
35+
* FFT module is updated to perform in-place FFT in intermediate steps of ND FFT [#2543](https://github.com/IntelPython/dpnp/pull/2543)
36+
* Reused dpctl tensor include to enable experimental SYCL namespace for complex types [#2546](https://github.com/IntelPython/dpnp/pull/2546)
3437

3538
### Deprecated
3639

@@ -47,6 +50,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
4750
* Avoided negating unsigned integers in ceil division used in `dpnp.resize` implementation [#2508](https://github.com/IntelPython/dpnp/pull/2508)
4851
* Fixed `dpnp.unique` with 1d input array and `axis=0`, `equal_nan=True` keywords passed where the produced result doesn't collapse the NaNs [#2530](https://github.com/IntelPython/dpnp/pull/2530)
4952
* Resolved issue when `dpnp.ndarray` constructor is called with `dpnp.ndarray.data` as `buffer` keyword [#2533](https://github.com/IntelPython/dpnp/pull/2533)
53+
* Fixed `dpnp.linalg.cond` to always return a real dtype [#2547](https://github.com/IntelPython/dpnp/pull/2547)
5054

5155
### Security
5256

dpnp/backend/kernels/elementwise_functions/sinc.hpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,15 @@
2525

2626
#pragma once
2727

28-
#define SYCL_EXT_ONEAPI_COMPLEX
29-
#if __has_include(<sycl/ext/oneapi/experimental/sycl_complex.hpp>)
30-
#include <sycl/ext/oneapi/experimental/sycl_complex.hpp>
31-
#else
32-
#include <sycl/ext/oneapi/experimental/complex/complex.hpp>
33-
#endif
28+
#include <cmath>
29+
#include <complex>
30+
#include <limits>
31+
#include <type_traits>
3432

3533
#include <sycl/sycl.hpp>
3634

3735
// dpctl tensor headers
36+
#include "kernels/elementwise_functions/sycl_complex.hpp"
3837
#include "utils/type_utils.hpp"
3938

4039
namespace dpnp::kernels::sinc
@@ -43,8 +42,6 @@ namespace tu_ns = dpctl::tensor::type_utils;
4342

4443
namespace impl
4544
{
46-
namespace exprm_ns = sycl::ext::oneapi::experimental;
47-
4845
template <typename Tp>
4946
inline Tp sin(const Tp &in)
5047
{

0 commit comments

Comments
 (0)