Skip to content

Commit e55e590

Browse files
authored
Merge branch 'master' into impl_pad
2 parents 7d5b47a + 927d898 commit e55e590

Some content is hidden

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

57 files changed

+2281
-409
lines changed

.github/workflows/build-sphinx.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
sudo apt-get install -y nvidia-cuda-toolkit clinfo
9797
9898
- name: Checkout repo
99-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
99+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
100100
with:
101101
fetch-depth: 0
102102

@@ -237,7 +237,7 @@ jobs:
237237
runs-on: ubuntu-latest
238238

239239
steps:
240-
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
240+
- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
241241
with:
242242
fetch-depth: 0
243243

.github/workflows/conda-package.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
access_token: ${{ github.token }}
9797

9898
- name: Checkout DPNP repo
99-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
99+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
100100
with:
101101
fetch-depth: 0
102102

@@ -130,7 +130,7 @@ jobs:
130130
run: mamba install conda-build=${{ env.CONDA_BUILD_VERSION}}
131131

132132
- name: Cache conda packages
133-
uses: actions/cache@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
133+
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
134134
env:
135135
CACHE_NUMBER: 1 # Increase to reset cache
136136
with:
@@ -145,13 +145,13 @@ jobs:
145145
run: conda build --no-test --python ${{ matrix.python }} --numpy 2.0 ${{ env.CHANNELS }} conda-recipe
146146

147147
- name: Upload artifact
148-
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
148+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
149149
with:
150150
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
151151
path: ${{ env.CONDA_BLD }}${{ env.PACKAGE_NAME }}-*.tar.bz2
152152

153153
- name: Upload wheels artifact
154-
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
154+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
155155
with:
156156
name: ${{ env.PACKAGE_NAME }} ${{ runner.os }} Wheels Python ${{ matrix.python }}
157157
path: ${{ env.WHEELS_OUTPUT_FOLDER }}${{ env.PACKAGE_NAME }}-*.whl
@@ -230,7 +230,7 @@ jobs:
230230
TEST_CHANNELS: '-c ${{ env.channel-path }} ${{ env.CHANNELS }}'
231231

232232
- name: Cache conda packages
233-
uses: actions/cache@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
233+
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
234234
env:
235235
CACHE_NUMBER: 1 # Increase to reset cache
236236
with:
@@ -374,7 +374,7 @@ jobs:
374374
run: more lockfile
375375

376376
- name: Cache conda packages
377-
uses: actions/cache@2cdf405574d6ef1f33a1d12acccd3ae82f47b3f2 # v4.1.0
377+
uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
378378
env:
379379
CACHE_NUMBER: 1 # Increase to reset cache
380380
with:
@@ -515,7 +515,7 @@ jobs:
515515
run: mamba install anaconda-client
516516

517517
- name: Checkout repo
518-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
518+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
519519
with:
520520
repository: IntelPython/devops-tools
521521
fetch-depth: 0

.github/workflows/generate_coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
access_token: ${{ github.token }}
3434

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

.github/workflows/openssf-scorecard.yml

Lines changed: 3 additions & 3 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@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
36+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
3737
with:
3838
persist-credentials: false
3939

@@ -60,14 +60,14 @@ jobs:
6060
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6161
# format to the repository Actions tab.
6262
- name: "Upload artifact"
63-
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
63+
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
6464
with:
6565
name: SARIF file
6666
path: results.sarif
6767
retention-days: 14
6868

6969
# Upload the results to GitHub's code scanning dashboard.
7070
- name: "Upload to code-scanning"
71-
uses: github/codeql-action/upload-sarif@6db8d6351fd0be61f9ed8ebd12ccd35dcec51fea # v3.26.11
71+
uses: github/codeql-action/upload-sarif@c36620d31ac7c881962c3d9dd939c40ec9434f2b # v3.26.12
7272
with:
7373
sarif_file: results.sarif

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
pylint
2727
2828
- name: Checkout DPNP repo
29-
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
29+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
3030

3131
- name: Set up python
3232
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
### Fixed
1414

1515

16-
## [0.16.0] - 09/DD/2024
16+
## [0.16.0] - 10/14/2024
1717

1818
This release reaches an important milestone by making offloading fully asynchronous. Calls to `dpnp` submit tasks for execution to DPC++ runtime and return without waiting for execution of these tasks to finish. The sequential semantics a user comes to expect from execution of Python script is preserved though.
1919
In addition, this release completes implementation of `dpnp.fft` module and adds several new array manipulation, indexing and elementwise routines. Moreover, it adds support to build `dpnp` for Nvidia GPUs.
@@ -117,6 +117,7 @@ In addition, this release completes implementation of `dpnp.fft` module and adds
117117
* Updated the test suit for `dpnp.fft` module [#2071](https://github.com/IntelPython/dpnp/pull/2071)
118118
* Reworked `dpnp.clip` implementation to align with Python Array API 2023.12 specification [#2048](https://github.com/IntelPython/dpnp/pull/2048)
119119
* Skipped outdated tests for `dpnp.linalg.solve` due to compatibility issues with NumPy 2.0 [#2074](https://github.com/IntelPython/dpnp/pull/2074)
120+
* Updated installation instructions [#2098](https://github.com/IntelPython/dpnp/pull/2098)
120121

121122
### Fixed
122123

@@ -128,7 +129,6 @@ In addition, this release completes implementation of `dpnp.fft` module and adds
128129
* Fixed a crash in `dpnp.choose` caused by missing control of releasing temporary allocated device memory [#2063](https://github.com/IntelPython/dpnp/pull/2063)
129130
* Resolved compilation warning and error while building in debug mode [#2066](https://github.com/IntelPython/dpnp/pull/2066)
130131
* Fixed an issue with asynchronous execution in `dpnp.fft` module [#2067](https://github.com/IntelPython/dpnp/pull/2067)
131-
* Added a workaround to fix the incorrect result from `dpnp.matmul` computing on Lunar Lake or Arrow Lake Battlemage graphics [#2082](https://github.com/IntelPython/dpnp/pull/2082)
132132

133133
## [0.15.0] - 05/25/2024
134134

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ python scripts/build_locally.py
4141
## Install Wheel Package via pip
4242
Install DPNP
4343
```cmd
44-
python -m pip install dpnp
44+
python -m pip install --index-url https://software.repos.intel.com/python/pypi dpnp
4545
```
4646

4747
Set path to Performance Libraries in case of using venv or system Python:

doc/known_words.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
al
2+
ary
23
backend
34
bitwise
45
boolean
@@ -31,6 +32,7 @@ Fortran
3132
Frobenius
3233
fs
3334
getter
35+
Golub
3436
Hadamard
3537
Hypergeometric
3638
iinfo
@@ -51,8 +53,10 @@ ndim
5153
Nj
5254
Nk
5355
normed
56+
nuc
5457
Nyquist
5558
oneAPI
59+
ord
5660
orthonormal
5761
Penrose
5862
Polyutils

doc/quick_start_guide.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ You will need one of the commands below:
4444

4545
* Conda: ``conda install dpnp -c https://software.repos.intel.com/python/conda/ -c conda-forge``
4646

47-
* Pip: ``python -m pip install dpnp``
47+
* Pip: ``python -m pip install --index-url https://software.repos.intel.com/python/pypi dpnp``
4848

4949
These commands install dpnp package along with its dependencies, including
5050
``dpctl`` package with `Data Parallel Control Library`_ and all required

doc/reference/binary.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Binary Operations
1+
Bit-wise operations
22
=================
33

4-
.. https://docs.scipy.org/doc/numpy/reference/routines.bitwise.html
4+
.. https://numpy.org/doc/stable/reference/routines.bitwise.html
55
66
Element-wise bit operations
77
---------------------------
@@ -15,8 +15,12 @@ Element-wise bit operations
1515
dpnp.bitwise_or
1616
dpnp.bitwise_xor
1717
dpnp.invert
18+
dpnp.bitwise_invert
1819
dpnp.left_shift
20+
dpnp.bitwise_left_shift
1921
dpnp.right_shift
22+
dpnp.bitwise_right_shift
23+
dpnp.bitwise_count
2024

2125

2226
Bit packing

doc/reference/creation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Array creation routines
44
=======================
55

6-
.. https://docs.scipy.org/doc/numpy/reference/routines.array-creation.html
6+
.. https://numpy.org/doc/stable/reference/routines.array-creation.html
77
88
From shape or value
99
-----------------------

doc/reference/dtype.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Data type routines
44
==================
55

6-
.. https://docs.scipy.org/doc/numpy/reference/routines.dtype.html
6+
.. https://numpy.org/doc/stable/reference/routines.dtype.html
77
88
.. autosummary::
99
:toctree: generated/

doc/reference/fft.rst

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
.. module:: dpnp.fft
2-
31
FFT Functions
42
=============
53

6-
.. https://docs.scipy.org/doc/numpy/reference/routines.fft.html
4+
.. https://numpy.org/doc/stable/reference/routines.fft.html
75
86
Standard FFTs
97
-------------
@@ -12,12 +10,12 @@ Standard FFTs
1210
:toctree: generated/
1311
:nosignatures:
1412

15-
fft
16-
ifft
17-
fft2
18-
ifft2
19-
fftn
20-
ifftn
13+
dpnp.fft.fft
14+
dpnp.fft.ifft
15+
dpnp.fft.fft2
16+
dpnp.fft.ifft2
17+
dpnp.fft.fftn
18+
dpnp.fft.ifftn
2119

2220

2321
Real FFTs
@@ -27,12 +25,12 @@ Real FFTs
2725
:toctree: generated/
2826
:nosignatures:
2927

30-
rfft
31-
irfft
32-
rfft2
33-
irfft2
34-
rfftn
35-
irfftn
28+
dpnp.fft.rfft
29+
dpnp.fft.irfft
30+
dpnp.fft.rfft2
31+
dpnp.fft.irfft2
32+
dpnp.fft.rfftn
33+
dpnp.fft.irfftn
3634

3735

3836
Hermitian FFTs
@@ -42,8 +40,8 @@ Hermitian FFTs
4240
:toctree: generated/
4341
:nosignatures:
4442

45-
hfft
46-
ihfft
43+
dpnp.fft.hfft
44+
dpnp.fft.ihfft
4745

4846

4947
Helper routines
@@ -53,10 +51,10 @@ Helper routines
5351
:toctree: generated/
5452
:nosignatures:
5553

56-
fftfreq
57-
rfftfreq
58-
fftshift
59-
ifftshift
54+
dpnp.fft.fftfreq
55+
dpnp.fft.rfftfreq
56+
dpnp.fft.fftshift
57+
dpnp.fft.ifftshift
6058

6159
.. fft.config module is not implemented yet
6260
.. dpnp.fft.config.set_cufft_callbacks

doc/reference/linalg.rst

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Linear Algebra
22
==============
33

4-
.. https://docs.scipy.org/doc/numpy/reference/routines.linalg.html
4+
.. https://numpy.org/doc/stable/reference/routines.linalg.html
55
66
Matrix and vector products
77
--------------------------
@@ -13,14 +13,19 @@ Matrix and vector products
1313
dpnp.dot
1414
dpnp.linalg.multi_dot
1515
dpnp.vdot
16+
dpnp.vecdot
17+
dpnp.linalg.vecdot (Array API compatible)
1618
dpnp.inner
1719
dpnp.outer
1820
dpnp.matmul
21+
dpnp.linalg.matmul (Array API compatible)
1922
dpnp.tensordot
23+
dpnp.linalg.tensordot (Array API compatible)
2024
dpnp.einsum
2125
dpnp.einsum_path
2226
dpnp.linalg.matrix_power
2327
dpnp.kron
28+
dpnp.linalg.cross (Array API compatible)
2429

2530
Decompositions
2631
--------------
@@ -30,8 +35,10 @@ Decompositions
3035
:nosignatures:
3136

3237
dpnp.linalg.cholesky
38+
dpnp.linalg.outer
3339
dpnp.linalg.qr
3440
dpnp.linalg.svd
41+
dpnp.linalg.svdvals
3542

3643
Matrix eigenvalues
3744
------------------
@@ -53,11 +60,14 @@ Norms and other numbers
5360
:nosignatures:
5461

5562
dpnp.linalg.norm
63+
dpnp.linalg.matrix_norm (Array API compatible)
64+
dpnp.linalg.vector_norm (Array API compatible)
5665
dpnp.linalg.cond
5766
dpnp.linalg.det
5867
dpnp.linalg.matrix_rank
5968
dpnp.linalg.slogdet
6069
dpnp.trace
70+
dpnp.linalg.trace (Array API compatible)
6171

6272

6373
Solving linear equations
@@ -73,3 +83,19 @@ Solving linear equations
7383
dpnp.linalg.inv
7484
dpnp.linalg.pinv
7585
dpnp.linalg.tensorinv
86+
87+
Other matrix operations
88+
-----------------------
89+
.. autosummary::
90+
:toctree: generated/
91+
92+
dpnp.diagonal
93+
dpnp.linalg.diagonal (Array API compatible)
94+
dpnp.linalg.matrix_tranpose (Array API compatible)
95+
96+
Exceptions
97+
----------
98+
.. autosummary::
99+
:toctree: generated/
100+
101+
dpnp.linalg.linAlgError

doc/reference/logic.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Logic Functions
22
===============
33

4-
.. https://docs.scipy.org/doc/numpy/reference/routines.logic.html
4+
.. https://numpy.org/doc/stable/reference/routines.logic.html
55
66
Truth value testing
77
-------------------

doc/reference/manipulation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Array Manipulation Routines
22
===========================
33

4-
.. https://docs.scipy.org/doc/numpy/reference/routines.array-manipulation.html
4+
.. https://numpy.org/doc/stable/reference/routines.array-manipulation.html
55
66
Basic operations
77
----------------

0 commit comments

Comments
 (0)