Skip to content

Commit 85f55d6

Browse files
authored
Merge branch 'master' into fix-vecmat-win-failure
2 parents 4a4885b + 5b39d66 commit 85f55d6

File tree

440 files changed

+7180
-2047
lines changed

Some content is hidden

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

440 files changed

+7180
-2047
lines changed

.flake8

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ exclude =
5555
benchmarks/*.py,
5656
build,
5757
dpnp/_version.py,
58-
dpnp/to_numba/*.py,
5958
conda.recipe,
6059
dpnp/tests/*.py,
6160
tests_external/*.py,

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @antonwolfy @AlexanderKalistratov @vlad-perevezentsev @vtavana @ndgrigorian
1+
* @antonwolfy @vlad-perevezentsev @ndgrigorian

.github/workflows/check-onemath.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
cat ${{ env.environment-file }}
5858
5959
- name: Upload artifact
60-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
60+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
6161
with:
6262
name: ${{ env.environment-file-name }}
6363
path: ${{ env.environment-file }}
@@ -70,7 +70,7 @@ jobs:
7070
strategy:
7171
fail-fast: false
7272
matrix:
73-
python: ['3.13']
73+
python: ['3.13'] # no dpctl package on PyPI with enabled python 3.14 support
7474
os: [ubuntu-22.04] # windows-2022 - no DFT support for Windows in oneMKL
7575

7676
runs-on: ${{ matrix.os }}
@@ -87,7 +87,7 @@ jobs:
8787
fetch-depth: 0
8888

8989
- name: Download artifact
90-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
90+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
9191
with:
9292
name: ${{ env.environment-file-name }}
9393
path: ${{ env.environment-file-loc }}
@@ -100,6 +100,7 @@ jobs:
100100
miniforge-version: latest
101101
use-mamba: 'true'
102102
conda-remove-defaults: 'true'
103+
python-version: ${{ matrix.python }}
103104
environment-file: ${{ env.environment-file }}
104105
activate-environment: ${{ env.test-env-name }}
105106

@@ -110,6 +111,7 @@ jobs:
110111
miniforge-version: latest
111112
use-mamba: 'true'
112113
conda-remove-defaults: 'true'
114+
python-version: ${{ matrix.python }}
113115
environment-file: ${{ env.environment-file }}
114116
activate-environment: ${{ env.test-env-name }}
115117

@@ -159,7 +161,7 @@ jobs:
159161
strategy:
160162
fail-fast: false
161163
matrix:
162-
python: ['3.13']
164+
python: ['3.13'] # no dpctl package on PyPI with enabled python 3.14 support
163165
os: [ubuntu-22.04] # windows-2022 - no DFT support for Windows in oneMKL
164166

165167
runs-on: ${{ matrix.os }}
@@ -179,7 +181,7 @@ jobs:
179181
fetch-depth: 0
180182

181183
- name: Download artifact
182-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
184+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
183185
with:
184186
name: ${{ env.environment-file-name }}
185187
path: ${{ env.environment-file-loc }}
@@ -204,6 +206,7 @@ jobs:
204206
miniforge-version: latest
205207
use-mamba: 'true'
206208
conda-remove-defaults: 'true'
209+
python-version: ${{ matrix.python }}
207210
environment-file: ${{ env.environment-file }}
208211
activate-environment: ${{ env.test-env-name }}
209212

@@ -214,6 +217,7 @@ jobs:
214217
miniforge-version: latest
215218
use-mamba: 'true'
216219
conda-remove-defaults: 'true'
220+
python-version: ${{ matrix.python }}
217221
environment-file: ${{ env.environment-file }}
218222
activate-environment: ${{ env.test-env-name }}
219223

.github/workflows/conda-package.yml

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616
ver-script-part1: "import json; f = open('version.json', 'r'); j = json.load(f); f.close(); "
1717
ver-script-part2: "d = j['dpnp'][0]; print('='.join((d[s] for s in ('version', 'build'))))"
1818
fetch-depth: 1
19-
python-ver-test-all-dtypes: '3.13'
19+
python-ver-test-all-dtypes: '3.14'
2020
test-env-name: 'test'
2121
rerun-tests-on-failure: 'true'
2222
rerun-tests-max-attempts: 2
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
32+
python: ['3.10', '3.11', '3.12', '3.13', '3.14']
3333
os: [ubuntu-22.04, windows-2022]
3434

3535
permissions:
@@ -93,22 +93,22 @@ jobs:
9393
continue-on-error: true
9494
run: conda build --no-test --python ${{ matrix.python }} --numpy 2.0 ${{ env.channels-list }} conda-recipe
9595
env:
96-
MAX_BUILD_CMPL_MKL_VERSION: '2025.3a0'
96+
MAX_BUILD_CMPL_MKL_VERSION: '2026.0a0'
9797

9898
- name: ReBuild conda package
9999
if: steps.build_conda_pkg.outcome == 'failure'
100100
run: conda build --no-test --python ${{ matrix.python }} --numpy 2.0 ${{ env.channels-list }} conda-recipe
101101
env:
102-
MAX_BUILD_CMPL_MKL_VERSION: '2025.3a0'
102+
MAX_BUILD_CMPL_MKL_VERSION: '2026.0a0'
103103

104104
- name: Upload artifact
105-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
105+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
106106
with:
107107
name: ${{ env.package-name }} ${{ runner.os }} Python ${{ matrix.python }}
108108
path: ${{ env.CONDA_BLD }}${{ env.package-name }}-*.conda
109109

110110
- name: Upload wheels artifact
111-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
111+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
112112
with:
113113
name: ${{ env.package-name }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
114114
path: ${{ env.WHEELS_OUTPUT_FOLDER }}${{ env.package-name }}-*.whl
@@ -128,7 +128,7 @@ jobs:
128128
strategy:
129129
fail-fast: false
130130
matrix:
131-
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
131+
python: ['3.10', '3.11', '3.12', '3.13', '3.14']
132132
os: [ubuntu-latest]
133133

134134
env:
@@ -139,14 +139,19 @@ jobs:
139139
ver-json-path: '${{ github.workspace }}/version.json'
140140

141141
steps:
142+
- name: Set Swap Space
143+
uses: pierotofy/set-swap-space@49819abfb41bd9b44fb781159c033dba90353a7c # v1.0
144+
with:
145+
swap-size-gb: 8
146+
142147
- name: Checkout DPNP repo
143148
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
144149
with:
145150
fetch-depth: ${{ env.fetch-depth }}
146151
path: ${{ env.dpnp-repo-path }}
147152

148153
- name: Download artifact
149-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
154+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
150155
with:
151156
name: ${{ env.package-name }} ${{ runner.os }} Python ${{ matrix.python }}
152157
path: ${{ env.pkg-path-in-channel }}
@@ -256,7 +261,7 @@ jobs:
256261
strategy:
257262
fail-fast: false
258263
matrix:
259-
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
264+
python: ['3.10', '3.11', '3.12', '3.13', '3.14']
260265
os: [windows-2022]
261266

262267
env:
@@ -274,7 +279,7 @@ jobs:
274279
path: ${{ env.dpnp-repo-path }}
275280

276281
- name: Download artifact
277-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
282+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
278283
with:
279284
name: ${{ env.package-name }} ${{ runner.os }} Python ${{ matrix.python }}
280285
path: ${{ env.pkg-path-in-channel }}
@@ -405,7 +410,7 @@ jobs:
405410
strategy:
406411
fail-fast: false
407412
matrix:
408-
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
413+
python: ['3.10', '3.11', '3.12', '3.13', '3.14']
409414
os: [ubuntu-22.04, windows-2022]
410415

411416
runs-on: ${{ matrix.os }}
@@ -430,12 +435,12 @@ jobs:
430435
fetch-depth: ${{ env.fetch-depth }}
431436

432437
- name: Download artifact
433-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
438+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
434439
with:
435440
name: ${{ env.package-name }} ${{ runner.os }} Python ${{ matrix.python }}
436441

437442
- name: Download wheels artifact
438-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
443+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
439444
with:
440445
name: ${{ env.package-name }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
441446

@@ -519,7 +524,7 @@ jobs:
519524
path: ${{ env.dpnp-repo-path }}
520525

521526
- name: Download artifact
522-
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
527+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
523528
with:
524529
name: ${{ env.package-name }} ${{ runner.os }} Python ${{ env.python-ver }}
525530
path: ${{ env.pkg-path-in-channel }}

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

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ env:
1313
package-name: dpnp
1414
channels-list: '-c dppy/label/dev -c https://software.repos.intel.com/python/conda/ -c conda-forge --override-channels'
1515
test-env-name: test
16+
test-packages: 'pytest scipy'
1617
rerun-tests-max-attempts: 2
1718
rerun-tests-timeout: 20
1819

@@ -37,18 +38,8 @@ jobs:
3738
strategy:
3839
fail-fast: false
3940
matrix:
40-
python: ['3.9', '3.10', '3.11', '3.12', '3.13']
41+
python: ['3.10', '3.11', '3.12', '3.13', '3.14']
4142
runner: [ubuntu-22.04, ubuntu-24.04, windows-2022]
42-
include:
43-
- python: 3.9
44-
# do not install scipy due to import issue
45-
test-packages: "pytest"
46-
- python: 3.10
47-
test-packages: "pytest scipy"
48-
- python: 3.11
49-
test-packages: "pytest scipy"
50-
- python: 3.12
51-
test-packages: "pytest scipy"
5243

5344
steps:
5445
- name: Cancel Previous Runs
@@ -94,12 +85,12 @@ jobs:
9485
id: install_dpnp
9586
continue-on-error: true
9687
run: |
97-
mamba install ${{ env.package-name }}=${{ steps.find_latest_tag.outputs.tag }} ${{ matrix.test-packages }} ${{ env.channels-list }}
88+
mamba install ${{ env.package-name }}=${{ steps.find_latest_tag.outputs.tag }} ${{ env.test-packages }} ${{ env.channels-list }}
9889
9990
- name: ReInstall dpnp
10091
if: steps.install_dpnp.outcome == 'failure'
10192
run: |
102-
mamba install ${{ env.package-name }}=${{ steps.find_latest_tag.outputs.tag }} ${{ matrix.test-packages }} ${{ env.channels-list }}
93+
mamba install ${{ env.package-name }}=${{ steps.find_latest_tag.outputs.tag }} ${{ env.test-packages }} ${{ env.channels-list }}
10394
10495
- name: List installed packages
10596
run: mamba list

.github/workflows/generate_coverage.yaml

Lines changed: 4 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,6 @@ jobs:
5757
intel-oneapi-libdpstd-devel \
5858
intel-oneapi-compiler-dpcpp-cpp
5959
60-
- name: Install Lcov
61-
run: |
62-
sudo apt-get install lcov
63-
sudo gem install coveralls-lcov
64-
6560
- name: Checkout repo
6661
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
6762
with:
@@ -135,39 +130,13 @@ jobs:
135130
conda activate coverage
136131
[ -f /opt/intel/oneapi/setvars.sh ] && source /opt/intel/oneapi/setvars.sh
137132
git clean -fxd
138-
python scripts/gen_coverage.py --verbose
133+
python scripts/gen_coverage.py
139134
140135
- name: Total number of coverage attempts
141136
run: |
142137
echo "Total number of coverage attempts: ${{ steps.build_coverage.outputs.total_attempts }}"
143138
144139
- name: Upload coverage data to coveralls.io
145-
run: |
146-
echo "Processing pytest-coverage"
147-
export DPNP_PYTEST_LCOV=$(find . -name dpnp_pytest.lcov)
148-
coveralls-lcov -v -n $DPNP_PYTEST_LCOV > pytest-dpnp-c-api-coverage.json
149-
150-
# merge file with coverage data and upload
151-
echo "Merging files with coverage data"
152-
coveralls --service=github --merge=pytest-dpnp-c-api-coverage.json
153-
env:
154-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
155-
COVERALLS_PARALLEL: true
156-
157-
coveralls:
158-
name: Indicate completion to coveralls.io
159-
160-
needs: generate-coverage
161-
162-
runs-on: ubuntu-latest
163-
timeout-minutes: 10
164-
165-
container: python:3-slim
166-
167-
steps:
168-
- name: Finished
169-
run: |
170-
pip3 install --upgrade coveralls==3.3.1
171-
coveralls --service=github --finish
172-
env:
173-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
140+
uses: coverallsapp/github-action@648a8eb78e6d50909eff900e4ec85cab4524a45b # v2.3.6
141+
with:
142+
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/openssf-scorecard.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
persist-credentials: false
4343

4444
- name: "Run analysis"
45-
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
45+
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
4646
with:
4747
results_file: results.sarif
4848
results_format: sarif
@@ -64,14 +64,14 @@ jobs:
6464
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6565
# format to the repository Actions tab.
6666
- name: "Upload artifact"
67-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
67+
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
6868
with:
6969
name: SARIF file
7070
path: results.sarif
7171
retention-days: 14
7272

7373
# Upload the results to GitHub's code scanning dashboard.
7474
- name: "Upload to code-scanning"
75-
uses: github/codeql-action/upload-sarif@192325c86100d080feab897ff886c34abd4c83a3 # v3.30.3
75+
uses: github/codeql-action/upload-sarif@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
7676
with:
7777
sarif_file: results.sarif

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Set up python
3030
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
3131
with:
32-
python-version: '3.13'
32+
python-version: '3.14'
3333

3434
- name: Install pre-commit
3535
run: pip install pre-commit

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Set up python
3939
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
4040
with:
41-
python-version: '3.13'
41+
python-version: '3.14'
4242

4343
- name: Run pre-commit checks
4444
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,19 @@ dpnp.egg-info
77
# Byte-compiled / optimized / DLL files
88
__pycache__/
99

10+
# Doc build and generated files
11+
doc/_build/
12+
doc/reference/generated/
13+
doc/reference/*.inc
14+
1015
# Code project files
1116
.vscode
1217

1318
# Files from test of code coverage
14-
coverage.xml
19+
.coverage
20+
*.lcov
21+
dpnp/**/*.cxx
22+
dpnp_pytest.*
1523

1624
# Backup files kept after git merge/rebase
1725
*.orig

0 commit comments

Comments
 (0)