Skip to content

Commit 61af54d

Browse files
authored
Merge branch 'master' into resolve-cmpl-warning
2 parents 82c269b + e41a732 commit 61af54d

File tree

125 files changed

+7391
-902
lines changed

Some content is hidden

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

125 files changed

+7391
-902
lines changed

.github/workflows/build-sphinx.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ env:
1212
GH_BOT_NAME: 'github-actions[bot]'
1313
GH_BOT_EMAIL: 'github-actions[bot]@users.noreply.github.com'
1414
GH_EVENT_OPEN_PR_UPSTREAM: ${{ github.event_name == 'pull_request' && github.event.action != 'closed' &&
15-
github.event.pull_request && !github.event.pull_request.head.repo.fork }}
15+
github.event.pull_request && !github.event.pull_request.base.repo.fork }}
1616
GH_EVENT_PUSH_UPSTREAM: ${{ github.ref == 'refs/heads/master' && github.event_name == 'push' &&
1717
github.event.ref == 'refs/heads/master' && github.event.repository && !github.event.repository.fork }}
1818
PUBLISH_DIR: doc/_build/html/
1919

2020
defaults:
2121
run:
22-
shell: bash -l {0}
22+
shell: bash -el {0}
2323

2424
jobs:
2525
build-and-deploy:
@@ -59,13 +59,13 @@ jobs:
5959
with:
6060
docker-images: false
6161

62-
- name: Install Intel repository
62+
- name: Add Intel repository
6363
run: |
64-
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
65-
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
66-
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
67-
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
68-
sudo apt-get update
64+
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
65+
cat GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
66+
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
67+
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
68+
sudo apt update
6969
7070
- name: Update libstdc++-dev
7171
run: |
@@ -76,11 +76,13 @@ jobs:
7676
7777
- name: Install Intel OneAPI
7878
run: |
79-
sudo apt-get install intel-oneapi-mkl \
80-
intel-oneapi-mkl-devel \
81-
intel-oneapi-tbb-devel \
82-
intel-oneapi-libdpstd-devel \
83-
intel-oneapi-compiler-dpcpp-cpp
79+
sudo apt install hwloc \
80+
intel-oneapi-mkl \
81+
intel-oneapi-umf \
82+
intel-oneapi-mkl-devel \
83+
intel-oneapi-tbb-devel \
84+
intel-oneapi-libdpstd-devel \
85+
intel-oneapi-compiler-dpcpp-cpp
8486
8587
# required by sphinxcontrib-spelling extension
8688
- name: Install enchant package
@@ -96,7 +98,7 @@ jobs:
9698
sudo apt-get install -y nvidia-cuda-toolkit clinfo
9799
98100
- name: Checkout repo
99-
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
101+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
100102
with:
101103
fetch-depth: 0
102104

@@ -224,7 +226,7 @@ jobs:
224226
clean:
225227
if: |
226228
github.event_name == 'pull_request' && github.event.action == 'closed' &&
227-
github.event.pull_request && !github.event.pull_request.head.repo.fork
229+
github.event.pull_request && !github.event.pull_request.base.repo.fork
228230
229231
needs: build-and-deploy
230232

@@ -237,7 +239,7 @@ jobs:
237239
runs-on: ubuntu-latest
238240

239241
steps:
240-
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
242+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
241243
with:
242244
fetch-depth: 0
243245

.github/workflows/conda-package.yml

Lines changed: 25 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -19,50 +19,6 @@ env:
1919
RERUN_TESTS_ON_FAILURE: 'true'
2020
RUN_TESTS_MAX_ATTEMPTS: 2
2121
TEST_ENV_NAME: 'test'
22-
TEST_SCOPE: >-
23-
test_absolute.py
24-
test_amin_amax.py
25-
test_arithmetic.py
26-
test_arraycreation.py
27-
test_arraymanipulation.py
28-
test_bitwise.py
29-
test_copy.py
30-
test_counting.py
31-
test_fft.py
32-
test_flat.py
33-
test_histogram.py
34-
test_indexing.py
35-
test_linalg.py
36-
test_logic.py
37-
test_manipulation.py
38-
test_mathematical.py
39-
test_mixins.py
40-
test_nanfunctions.py
41-
test_ndarray.py
42-
test_outer.py
43-
test_product.py
44-
test_random_state.py
45-
test_search.py
46-
test_sort.py
47-
test_special.py
48-
test_statistics.py
49-
test_sum.py
50-
test_sycl_queue.py
51-
test_umath.py
52-
test_usm_type.py
53-
third_party/cupy/core_tests
54-
third_party/cupy/fft_tests
55-
third_party/cupy/creation_tests
56-
third_party/cupy/indexing_tests
57-
third_party/cupy/lib_tests
58-
third_party/cupy/linalg_tests
59-
third_party/cupy/logic_tests
60-
third_party/cupy/manipulation_tests
61-
third_party/cupy/math_tests
62-
third_party/cupy/sorting_tests
63-
third_party/cupy/statistics_tests/test_histogram.py
64-
third_party/cupy/statistics_tests/test_meanvar.py
65-
third_party/cupy/test_ndim.py
6622
VER_JSON_NAME: 'version.json'
6723
VER_SCRIPT1: "import json; f = open('version.json', 'r'); j = json.load(f); f.close(); "
6824
VER_SCRIPT2: "d = j['dpnp'][0]; print('='.join((d[s] for s in ('version', 'build'))))"
@@ -84,7 +40,7 @@ jobs:
8440

8541
defaults:
8642
run:
87-
shell: ${{ matrix.os == 'windows-2019' && 'cmd /C CALL {0}' || 'bash -l {0}' }}
43+
shell: ${{ matrix.os == 'windows-2019' && 'cmd /C CALL {0}' || 'bash -el {0}' }}
8844

8945
continue-on-error: true
9046

@@ -95,7 +51,7 @@ jobs:
9551
access_token: ${{ github.token }}
9652

9753
- name: Checkout DPNP repo
98-
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
54+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
9955
with:
10056
fetch-depth: 0
10157

@@ -120,7 +76,7 @@ jobs:
12076
run: echo "MAMBA_NO_LOW_SPEED_LIMIT=1" >> $GITHUB_ENV
12177

12278
- name: Store conda paths as envs
123-
shell: bash -l {0}
79+
shell: bash -el {0}
12480
run: |
12581
echo "CONDA_BLD=$CONDA_PREFIX/conda-bld/${{ runner.os == 'Linux' && 'linux' || 'win' }}-64/" | tr "\\\\" '/' >> $GITHUB_ENV
12682
echo "WHEELS_OUTPUT_FOLDER=$GITHUB_WORKSPACE${{ runner.os == 'Linux' && '/' || '\\' }}" >> $GITHUB_ENV
@@ -129,7 +85,7 @@ jobs:
12985
run: mamba install conda-build=${{ env.CONDA_BUILD_VERSION}}
13086

13187
- name: Cache conda packages
132-
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
88+
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
13389
env:
13490
CACHE_NUMBER: 1 # Increase to reset cache
13591
with:
@@ -142,6 +98,8 @@ jobs:
14298
14399
- name: Build conda package
144100
run: conda build --no-test --python ${{ matrix.python }} --numpy 2.0 ${{ env.CHANNELS }} conda-recipe
101+
env:
102+
MAX_BUILD_CMPL_MKL_VERSION: '2025.1a0'
145103

146104
- name: Upload artifact
147105
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
@@ -164,7 +122,7 @@ jobs:
164122

165123
defaults:
166124
run:
167-
shell: bash -l {0}
125+
shell: bash -el {0}
168126

169127
strategy:
170128
matrix:
@@ -229,7 +187,7 @@ jobs:
229187
TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ env.CHANNELS }}'
230188

231189
- name: Cache conda packages
232-
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
190+
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
233191
env:
234192
CACHE_NUMBER: 1 # Increase to reset cache
235193
with:
@@ -257,7 +215,7 @@ jobs:
257215
- name: Run tests
258216
if: env.RERUN_TESTS_ON_FAILURE != 'true'
259217
run: |
260-
python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }}
218+
python -m pytest -q -ra --disable-warnings -vv .
261219
working-directory: ${{ env.tests-path }}
262220

263221
- name: Run tests
@@ -273,7 +231,7 @@ jobs:
273231
. $CONDA/etc/profile.d/conda.sh
274232
conda activate ${{ env.TEST_ENV_NAME }}
275233
cd ${{ env.tests-path }}
276-
python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }}
234+
python -m pytest -q -ra --disable-warnings -vv .
277235
278236
test_windows:
279237
name: Test ['windows-2019', python='${{ matrix.python }}']
@@ -360,7 +318,7 @@ jobs:
360318
@echo on
361319
set "SCRIPT=${{ env.VER_SCRIPT1 }} ${{ env.VER_SCRIPT2 }}"
362320
FOR /F "tokens=* USEBACKQ" %%F IN (`python -c "%SCRIPT%"`) DO (
363-
SET PACKAGE_VERSION=%%F
321+
set PACKAGE_VERSION=%%F
364322
)
365323
echo PACKAGE_VERSION: %PACKAGE_VERSION%
366324
(echo PACKAGE_VERSION=%PACKAGE_VERSION%) >> %GITHUB_ENV%
@@ -373,7 +331,7 @@ jobs:
373331
run: more lockfile
374332

375333
- name: Cache conda packages
376-
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
334+
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
377335
env:
378336
CACHE_NUMBER: 1 # Increase to reset cache
379337
with:
@@ -399,7 +357,11 @@ jobs:
399357
shell: pwsh
400358
run: |
401359
$script_path="$env:CONDA_PREFIX\Scripts\set-intel-ocl-icd-registry.ps1"
402-
&$script_path
360+
if (Test-Path $script_path) {
361+
&$script_path
362+
} else {
363+
Write-Warning "File $script_path was NOT found!"
364+
}
403365
# Check the variable assisting OpenCL CPU driver to find TBB DLLs which are not located where it expects them by default
404366
$cl_cfg="$env:CONDA_PREFIX\Library\lib\cl.cfg"
405367
Get-Content -Tail 5 -Path $cl_cfg
@@ -412,7 +374,7 @@ jobs:
412374
- name: Run tests
413375
if: env.RERUN_TESTS_ON_FAILURE != 'true'
414376
run: |
415-
python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }}
377+
python -m pytest -q -ra --disable-warnings -vv .
416378
working-directory: ${{ env.tests-path }}
417379

418380
- name: Run tests
@@ -427,7 +389,7 @@ jobs:
427389
command: >-
428390
mamba activate ${{ env.TEST_ENV_NAME }}
429391
& cd ${{ env.tests-path }}
430-
& python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }}
392+
& python -m pytest -q -ra --disable-warnings -vv .
431393
432394
upload:
433395
name: Upload ['${{ matrix.os }}', python='${{ matrix.python }}']
@@ -443,7 +405,7 @@ jobs:
443405

444406
defaults:
445407
run:
446-
shell: bash -l {0}
408+
shell: bash -el {0}
447409

448410
continue-on-error: true
449411

@@ -492,11 +454,15 @@ jobs:
492454

493455
cleanup_packages:
494456
name: Clean up anaconda packages
457+
495458
needs: [upload]
459+
496460
runs-on: 'ubuntu-latest'
461+
497462
defaults:
498463
run:
499464
shell: bash -el {0}
465+
500466
steps:
501467
- uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4
502468
with:
@@ -514,7 +480,7 @@ jobs:
514480
run: mamba install anaconda-client
515481

516482
- name: Checkout repo
517-
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
483+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
518484
with:
519485
repository: IntelPython/devops-tools
520486
fetch-depth: 0

.github/workflows/generate_coverage.yaml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
defaults:
1919
run:
20-
shell: bash -l {0}
20+
shell: bash -el {0}
2121

2222
env:
2323
python-ver: '3.12'
@@ -33,27 +33,29 @@ jobs:
3333
access_token: ${{ github.token }}
3434

3535
- name: Checkout repo
36-
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
36+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3737
with:
3838
fetch-depth: 0
3939

4040
- name: Add Intel repository
4141
if: env.INSTALL_ONE_API == 'yes'
4242
run: |
43-
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
44-
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
45-
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
46-
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
47-
sudo apt-get update
43+
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
44+
cat GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
45+
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
46+
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
47+
sudo apt update
4848
4949
- name: Install latest Intel OneAPI
5050
if: env.INSTALL_ONE_API == 'yes'
5151
run: |
52-
sudo apt-get install intel-oneapi-mkl \
53-
intel-oneapi-mkl-devel \
54-
intel-oneapi-tbb-devel \
55-
intel-oneapi-libdpstd-devel \
56-
intel-oneapi-compiler-dpcpp-cpp
52+
sudo apt install hwloc \
53+
intel-oneapi-mkl \
54+
intel-oneapi-umf \
55+
intel-oneapi-mkl-devel \
56+
intel-oneapi-tbb-devel \
57+
intel-oneapi-libdpstd-devel \
58+
intel-oneapi-compiler-dpcpp-cpp
5759
5860
- name: Install Lcov
5961
run: |
@@ -109,7 +111,7 @@ jobs:
109111
conda activate coverage
110112
[ -f /opt/intel/oneapi/setvars.sh ] && source /opt/intel/oneapi/setvars.sh
111113
git clean -fxd
112-
python scripts/gen_coverage.py --pytest-opts="--ignore tests/test_random.py" --verbose
114+
python scripts/gen_coverage.py --verbose
113115
114116
- name: Total number of coverage attempts
115117
run: |

.github/workflows/openssf-scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
steps:
3535
- name: "Checkout code"
36-
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
36+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3737
with:
3838
persist-credentials: false
3939

@@ -68,6 +68,6 @@ jobs:
6868

6969
# Upload the results to GitHub's code scanning dashboard.
7070
- name: "Upload to code-scanning"
71-
uses: github/codeql-action/upload-sarif@f779452ac5af1c261dce0346a8f964149f49322b # v3.26.13
71+
uses: github/codeql-action/upload-sarif@662472033e021d55d94146f66f6058822b0b39fd # v3.27.0
7272
with:
7373
sarif_file: results.sarif

.github/workflows/pre-commit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ jobs:
2626
pylint
2727
2828
- name: Checkout DPNP repo
29-
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
29+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3030

3131
- name: Set up python
32-
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
32+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
3333
with:
3434
python-version: '3.12'
3535

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ repos:
5252
rev: 24.4.2
5353
hooks:
5454
- id: black
55-
args: ["--check", "--diff", "--color"]
5655
- repo: https://github.com/pycqa/isort
5756
rev: 5.13.2
5857
hooks:

0 commit comments

Comments
 (0)