Skip to content

Commit ddd622c

Browse files
authored
Merge branch 'master' into impl_histogram
2 parents ebe1f18 + 859aa9a commit ddd622c

17 files changed

+24
-39
lines changed

doc/dpctl.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.. include:: ./ext_links.txt
33

44
Interplay with the Data Parallel Control Library
5-
===============================================
5+
================================================
66

77
`Data Parallel Control Library`_ provides API to manage specific
88
`SYCL*`_ resources for SYCL-based Python packages.

doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Data Parallel Extension for NumPy*
55
==================================
66

77
.. module:: dpnp
8+
:noindex:
89

910
.. toctree::
1011
:maxdepth: 2

doc/quick_start_guide.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Follow device driver installation instructions to complete the step.
2222

2323

2424
Python Interpreter
25-
=================
25+
==================
2626

2727
You will need Python 3.8, 3.9, or 3.10 installed on your system. If you
2828
do not have one yet the easiest way to do that is to install
@@ -38,7 +38,7 @@ Installation
3838
============
3939

4040
Install Package from Anaconda
41-
---------------------
41+
-----------------------------
4242

4343
It is recommended to use conda packages from the ``anaconda.org/intel``
4444
channel. You will need one of the commands below:

doc/reference/creation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Numerical ranges
6363

6464

6565
Building matrices
66-
---------------
66+
-----------------
6767

6868
.. autosummary::
6969
:toctree: generated/

doc/reference/dtypes_table.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
Available array data types
2-
==========================
3-
41
.. _Data types:
52

3+
Available array data types
4+
==========================
65

76
Table below shows a list of all supported data types (dtypes) and constants of the Data Parallel Extension for NumPy*.
87

doc/reference/linalg.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Matrix eigenvalues
4646
dpnp.linalg.eigvalsh
4747

4848
Norms and other numbers
49-
----------
49+
-----------------------
5050

5151
.. autosummary::
5252
:toctree: generated/

doc/reference/ndarray.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ For the following methods there are also corresponding functions in
115115
:func:`diagonal <dpnp.diagonal>`, :func:`imag <dpnp.imag>`,
116116
:func:`max <dpnp.max>`, :func:`mean <dpnp.mean>`, :func:`min <dpnp.min>`,
117117
:func:`nonzero <dpnp.nonzero>`, :func:`partition <dpnp.partition>`,
118-
:func:`prod <dpnp.prod>`, :func:`ptp <dpnp.ptp>`, :func:`put <dpnp.put>`,
118+
:func:`prod <dpnp.prod>`, :func:`put <dpnp.put>`,
119119
:func:`ravel <dpnp.ravel>`, :func:`real <dpnp.real>`, :func:`repeat <dpnp.repeat>`,
120120
:func:`reshape <dpnp.reshape>`, :func:`round <dpnp.around>`,
121121
:func:`searchsorted <dpnp.searchsorted>`, :func:`sort <dpnp.sort>`,
@@ -204,7 +204,6 @@ Calculation
204204
dpnp.ndarray.argmax
205205
dpnp.ndarray.min
206206
dpnp.ndarray.argmin
207-
dpnp.ndarray.ptp
208207
dpnp.ndarray.clip
209208
dpnp.ndarray.conj
210209
dpnp.ndarray.conjugate

doc/reference/statistics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Order statistics
1818

1919

2020
Averages and variances
21-
-------------------
21+
----------------------
2222

2323
.. autosummary::
2424
:toctree: generated/

dpnp/backend/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,6 @@ endif()
8080
# endif()
8181

8282
target_link_options(${_trgt} PUBLIC -fsycl-device-code-split=per_kernel)
83-
if(UNIX)
84-
# this option is support on Linux only
85-
target_link_options(${_trgt} PUBLIC -flink-huge-device-code)
86-
endif()
8783

8884
if(DPNP_GENERATE_COVERAGE)
8985
target_link_options(${_trgt} PRIVATE -fprofile-instr-generate -fcoverage-mapping)

dpnp/backend/extensions/blas/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ else()
6666
endif()
6767

6868
target_link_options(${python_module_name} PUBLIC -fsycl-device-code-split=per_kernel)
69-
if (UNIX)
70-
# this option is support on Linux only
71-
target_link_options(${python_module_name} PUBLIC -flink-huge-device-code)
72-
endif()
7369

7470
if (DPNP_GENERATE_COVERAGE)
7571
target_link_options(${python_module_name} PRIVATE -fprofile-instr-generate -fcoverage-mapping)

dpnp/backend/extensions/lapack/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,6 @@ else()
7777
endif()
7878

7979
target_link_options(${python_module_name} PUBLIC -fsycl-device-code-split=per_kernel)
80-
if (UNIX)
81-
# this option is support on Linux only
82-
target_link_options(${python_module_name} PUBLIC -flink-huge-device-code)
83-
endif()
8480

8581
if (DPNP_GENERATE_COVERAGE)
8682
target_link_options(${python_module_name} PRIVATE -fprofile-instr-generate -fcoverage-mapping)

dpnp/backend/extensions/sycl_ext/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ else()
6161
endif()
6262

6363
target_link_options(${python_module_name} PUBLIC -fsycl-device-code-split=per_kernel)
64-
if (UNIX)
65-
# this option is support on Linux only
66-
target_link_options(${python_module_name} PUBLIC -flink-huge-device-code)
67-
endif()
6864

6965
if (DPNP_GENERATE_COVERAGE)
7066
target_link_options(${python_module_name} PRIVATE -fprofile-instr-generate -fcoverage-mapping)

dpnp/backend/extensions/vm/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,6 @@ else()
6161
endif()
6262

6363
target_link_options(${python_module_name} PUBLIC -fsycl-device-code-split=per_kernel)
64-
if (UNIX)
65-
# this option is support on Linux only
66-
target_link_options(${python_module_name} PUBLIC -flink-huge-device-code)
67-
endif()
6864

6965
if (DPNP_GENERATE_COVERAGE)
7066
target_link_options(${python_module_name} PRIVATE -fprofile-instr-generate -fcoverage-mapping)

dpnp/dpnp_array.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -550,11 +550,13 @@ def astype(self, dtype, order="K", casting="unsafe", subok=True, copy=True):
550550
Otherwise, a copy is returned.
551551
casting : {'no', 'equiv', 'safe', 'same_kind', 'unsafe'}, optional
552552
Controls what kind of data casting may occur. Defaults to 'unsafe' for backwards compatibility.
553-
'no' means the data types should not be cast at all.
554-
'equiv' means only byte-order changes are allowed.
555-
'safe' means only casts which can preserve values are allowed.
556-
'same_kind' means only safe casts or casts within a kind, like float64 to float32, are allowed.
557-
'unsafe' means any data conversions may be done.
553+
554+
- 'no' means the data types should not be cast at all.
555+
- 'equiv' means only byte-order changes are allowed.
556+
- 'safe' means only casts which can preserve values are allowed.
557+
- 'same_kind' means only safe casts or casts within a kind, like float64 to float32, are allowed.
558+
- 'unsafe' means any data conversions may be done.
559+
558560
copy : bool, optional
559561
By default, astype always returns a newly allocated array. If this is set to false, and the dtype,
560562
order, and subok requirements are satisfied, the input array is returned instead of a copy.

dpnp/dpnp_iface.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,14 @@ def astype(x1, dtype, order="K", casting="unsafe", copy=True):
201201
casting : {'no', 'equiv', 'safe', 'same_kind', 'unsafe'}, optional
202202
Controls what kind of data casting may occur. Defaults to ``unsafe``
203203
for backwards compatibility.
204+
204205
- 'no' means the data types should not be cast at all.
205206
- 'equiv' means only byte-order changes are allowed.
206207
- 'safe' means only casts which can preserve values are allowed.
207208
- 'same_kind' means only safe casts or casts within a kind, like
208-
float64 to float32, are allowed.
209+
float64 to float32, are allowed.
209210
- 'unsafe' means any data conversions may be done.
211+
210212
copy : bool, optional
211213
By default, astype always returns a newly allocated array. If this
212214
is set to ``False``, and the dtype, order, and subok requirements

dpnp/dpnp_iface_types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ def finfo(dtype):
163163
-------
164164
out : finfo_object
165165
An object have the following attributes
166+
166167
* bits: int
167168
number of bits occupied by dtype.
168169
* dtype: dtype
@@ -212,6 +213,7 @@ def iinfo(dtype):
212213
-------
213214
out : iinfo_object
214215
An object with the following attributes
216+
215217
* bits: int
216218
number of bits occupied by the data type
217219
* dtype: dtype

dpnp/linalg/dpnp_iface_linalg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,12 +577,12 @@ def inv(a):
577577
array([ True])
578578
579579
Inverses of several matrices can be computed at once:
580+
580581
>>> a = np.array([[[1., 2.], [3., 4.]], [[1, 3], [3, 5]]])
581582
>>> np.linalg.inv(a)
582583
array([[[-2. , 1. ],
583584
[ 1.5 , -0.5 ]],
584-
585-
[[-1.25, 0.75],
585+
[[-1.25, 0.75],
586586
[ 0.75, -0.25]]])
587587
588588
"""

0 commit comments

Comments
 (0)