Skip to content

Commit b72553b

Browse files
Align with dpctl changes for DLPack v1.0 support 3910986
1 parent 0f9efcc commit b72553b

File tree

596 files changed

+3835
-1774
lines changed

Some content is hidden

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

596 files changed

+3835
-1774
lines changed

pull/1980/.buildinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Sphinx build info version 1
22
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 4cd77287bb23c6a5b8c98e53eddb9d53
3+
config: a495a1b0e8a38ec7fe138f8b8cb417f5
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

pull/1980/_modules/dpnp/dpnp_array.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</script>
1313

1414
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
15-
<title>dpnp.dpnp_array &mdash; Data Parallel Extension for NumPy 0.16.0dev0+155.g78b0bee505 documentation</title>
15+
<title>dpnp.dpnp_array &mdash; Data Parallel Extension for NumPy 0.16.0dev0+165.g39109869f0f documentation</title>
1616
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1717
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
1818

@@ -23,7 +23,7 @@
2323

2424
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2525
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
26-
<script src="../../_static/documentation_options.js?v=e1b9974c"></script>
26+
<script src="../../_static/documentation_options.js?v=f22b0320"></script>
2727
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2828
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2929
<script src="../../_static/js/theme.js"></script>
@@ -43,7 +43,7 @@
4343
Data Parallel Extension for NumPy
4444
</a>
4545
<div class="version">
46-
0.16.0dev0+155.g78b0bee505
46+
0.16.0dev0+165.g39109869f0f
4747
</div>
4848
<div role="search">
4949
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">

pull/1980/_modules/dpnp/dpnp_flatiter.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</script>
1313

1414
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
15-
<title>dpnp.dpnp_flatiter &mdash; Data Parallel Extension for NumPy 0.16.0dev0+155.g78b0bee505 documentation</title>
15+
<title>dpnp.dpnp_flatiter &mdash; Data Parallel Extension for NumPy 0.16.0dev0+165.g39109869f0f documentation</title>
1616
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1717
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
1818

@@ -23,7 +23,7 @@
2323

2424
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2525
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
26-
<script src="../../_static/documentation_options.js?v=e1b9974c"></script>
26+
<script src="../../_static/documentation_options.js?v=f22b0320"></script>
2727
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2828
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2929
<script src="../../_static/js/theme.js"></script>
@@ -43,7 +43,7 @@
4343
Data Parallel Extension for NumPy
4444
</a>
4545
<div class="version">
46-
0.16.0dev0+155.g78b0bee505
46+
0.16.0dev0+165.g39109869f0f
4747
</div>
4848
<div role="search">
4949
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">

pull/1980/_modules/dpnp/dpnp_iface.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</script>
1313

1414
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
15-
<title>dpnp.dpnp_iface &mdash; Data Parallel Extension for NumPy 0.16.0dev0+155.g78b0bee505 documentation</title>
15+
<title>dpnp.dpnp_iface &mdash; Data Parallel Extension for NumPy 0.16.0dev0+165.g39109869f0f documentation</title>
1616
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1717
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
1818

@@ -23,7 +23,7 @@
2323

2424
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2525
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
26-
<script src="../../_static/documentation_options.js?v=e1b9974c"></script>
26+
<script src="../../_static/documentation_options.js?v=f22b0320"></script>
2727
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2828
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2929
<script src="../../_static/js/theme.js"></script>
@@ -43,7 +43,7 @@
4343
Data Parallel Extension for NumPy
4444
</a>
4545
<div class="version">
46-
0.16.0dev0+155.g78b0bee505
46+
0.16.0dev0+165.g39109869f0f
4747
</div>
4848
<div role="search">
4949
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">

pull/1980/_modules/dpnp/dpnp_iface_arraycreation.html

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</script>
1313

1414
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
15-
<title>dpnp.dpnp_iface_arraycreation &mdash; Data Parallel Extension for NumPy 0.16.0dev0+155.g78b0bee505 documentation</title>
15+
<title>dpnp.dpnp_iface_arraycreation &mdash; Data Parallel Extension for NumPy 0.16.0dev0+165.g39109869f0f documentation</title>
1616
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1717
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
1818

@@ -23,7 +23,7 @@
2323

2424
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2525
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
26-
<script src="../../_static/documentation_options.js?v=e1b9974c"></script>
26+
<script src="../../_static/documentation_options.js?v=f22b0320"></script>
2727
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2828
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2929
<script src="../../_static/js/theme.js"></script>
@@ -43,7 +43,7 @@
4343
Data Parallel Extension for NumPy
4444
</a>
4545
<div class="version">
46-
0.16.0dev0+155.g78b0bee505
46+
0.16.0dev0+165.g39109869f0f
4747
</div>
4848
<div role="search">
4949
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">
@@ -328,17 +328,24 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
328328
<span class="sd"> The desired dtype for the array. If not given, a default dtype will be</span>
329329
<span class="sd"> used that can represent the values (by considering Promotion Type Rule</span>
330330
<span class="sd"> and device capabilities when necessary).</span>
331-
<span class="sd"> copy : bool, optional</span>
332-
<span class="sd"> If ``True`` (default), then the object is copied.</span>
331+
<span class="sd"> Default: ``None``.</span>
332+
<span class="sd"> copy : {None, bool}, optional</span>
333+
<span class="sd"> If ``True``, then the array data is copied. If ``None``, a copy will</span>
334+
<span class="sd"> only be made if a copy is needed to satisfy any of the requirements</span>
335+
<span class="sd"> (``dtype``, ``order``, etc.). For ``False`` it raises a ``ValueError``</span>
336+
<span class="sd"> exception if a copy can not be avoided.</span>
337+
<span class="sd"> Default: ``True``.</span>
333338
<span class="sd"> order : {&quot;C&quot;, &quot;F&quot;, &quot;A&quot;, &quot;K&quot;}, optional</span>
334-
<span class="sd"> Memory layout of the newly output array. Default: &quot;K&quot;.</span>
339+
<span class="sd"> Memory layout of the newly output array.</span>
340+
<span class="sd"> Default: &quot;K&quot;.</span>
335341
<span class="sd"> device : {None, string, SyclDevice, SyclQueue}, optional</span>
336342
<span class="sd"> An array API concept of device where the output array is created.</span>
337343
<span class="sd"> The `device` can be ``None`` (the default), an OneAPI filter selector</span>
338344
<span class="sd"> string, an instance of :class:`dpctl.SyclDevice` corresponding to</span>
339345
<span class="sd"> a non-partitioned SYCL device, an instance of :class:`dpctl.SyclQueue`,</span>
340346
<span class="sd"> or a `Device` object returned by</span>
341347
<span class="sd"> :obj:`dpnp.dpnp_array.dpnp_array.device` property.</span>
348+
<span class="sd"> Default: ``None``.</span>
342349
<span class="sd"> usm_type : {None, &quot;device&quot;, &quot;shared&quot;, &quot;host&quot;}, optional</span>
343350
<span class="sd"> The type of SYCL USM allocation for the output array.</span>
344351
<span class="sd"> Default: ``None``.</span>
@@ -417,11 +424,6 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
417424
<span class="sa">f</span><span class="s2">&quot;default value ``0``, but got </span><span class="si">{</span><span class="n">ndmin</span><span class="si">}</span><span class="s2">&quot;</span>
418425
<span class="p">)</span>
419426

420-
<span class="c1"># `False`` in numpy means exactly the same like `None` in python array API:</span>
421-
<span class="c1"># that is to reuse existing memory buffer if possible or to copy otherwise.</span>
422-
<span class="k">if</span> <span class="n">copy</span> <span class="ow">is</span> <span class="kc">False</span><span class="p">:</span>
423-
<span class="n">copy</span> <span class="o">=</span> <span class="kc">None</span>
424-
425427
<span class="k">return</span> <span class="n">dpnp_container</span><span class="o">.</span><span class="n">asarray</span><span class="p">(</span>
426428
<span class="n">a</span><span class="p">,</span>
427429
<span class="n">dtype</span><span class="o">=</span><span class="n">dtype</span><span class="p">,</span>
@@ -544,10 +546,12 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
544546
<span class="n">a</span><span class="p">,</span>
545547
<span class="n">dtype</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
546548
<span class="n">order</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
547-
<span class="n">like</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
549+
<span class="o">*</span><span class="p">,</span>
548550
<span class="n">device</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
549551
<span class="n">usm_type</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
550552
<span class="n">sycl_queue</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
553+
<span class="n">copy</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
554+
<span class="n">like</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span>
551555
<span class="p">):</span>
552556
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
553557
<span class="sd"> Converts an input object into array.</span>
@@ -564,15 +568,18 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
564568
<span class="sd"> The desired dtype for the array. If not given, a default dtype will be</span>
565569
<span class="sd"> used that can represent the values (by considering Promotion Type Rule</span>
566570
<span class="sd"> and device capabilities when necessary).</span>
571+
<span class="sd"> Default: ``None``.</span>
567572
<span class="sd"> order : {None, &quot;C&quot;, &quot;F&quot;, &quot;A&quot;, &quot;K&quot;}, optional</span>
568-
<span class="sd"> Memory layout of the newly output array. Default: &quot;K&quot;.</span>
573+
<span class="sd"> Memory layout of the newly output array.</span>
574+
<span class="sd"> Default: &quot;K&quot;.</span>
569575
<span class="sd"> device : {None, string, SyclDevice, SyclQueue}, optional</span>
570576
<span class="sd"> An array API concept of device where the output array is created.</span>
571577
<span class="sd"> The `device` can be ``None`` (the default), an OneAPI filter selector</span>
572578
<span class="sd"> string, an instance of :class:`dpctl.SyclDevice` corresponding to</span>
573579
<span class="sd"> a non-partitioned SYCL device, an instance of :class:`dpctl.SyclQueue`,</span>
574580
<span class="sd"> or a `Device` object returned by</span>
575581
<span class="sd"> :obj:`dpnp.dpnp_array.dpnp_array.device` property.</span>
582+
<span class="sd"> Default: ``None``.</span>
576583
<span class="sd"> usm_type : {None, &quot;device&quot;, &quot;shared&quot;, &quot;host&quot;}, optional</span>
577584
<span class="sd"> The type of SYCL USM allocation for the output array.</span>
578585
<span class="sd"> Default: ``None``.</span>
@@ -582,6 +589,12 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
582589
<span class="sd"> to get the SYCL queue from `device` keyword if present or to use</span>
583590
<span class="sd"> a default queue.</span>
584591
<span class="sd"> Default: ``None``.</span>
592+
<span class="sd"> copy : {None, bool}, optional</span>
593+
<span class="sd"> If ``True``, then the array data is copied. If ``None``, a copy will</span>
594+
<span class="sd"> only be made if a copy is needed to satisfy any of the requirements</span>
595+
<span class="sd"> (``dtype``, ``order``, etc.). For ``False`` it raises a ``ValueError``</span>
596+
<span class="sd"> exception if a copy can not be avoided.</span>
597+
<span class="sd"> Default: ``True``.</span>
585598

586599
<span class="sd"> Returns</span>
587600
<span class="sd"> -------</span>
@@ -634,6 +647,7 @@ <h1>Source code for dpnp.dpnp_iface_arraycreation</h1><div class="highlight"><pr
634647
<span class="k">return</span> <span class="n">dpnp_container</span><span class="o">.</span><span class="n">asarray</span><span class="p">(</span>
635648
<span class="n">a</span><span class="p">,</span>
636649
<span class="n">dtype</span><span class="o">=</span><span class="n">dtype</span><span class="p">,</span>
650+
<span class="n">copy</span><span class="o">=</span><span class="n">copy</span><span class="p">,</span>
637651
<span class="n">order</span><span class="o">=</span><span class="n">order</span><span class="p">,</span>
638652
<span class="n">device</span><span class="o">=</span><span class="n">device</span><span class="p">,</span>
639653
<span class="n">usm_type</span><span class="o">=</span><span class="n">usm_type</span><span class="p">,</span>

pull/1980/_modules/dpnp/dpnp_iface_counting.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</script>
1313

1414
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
15-
<title>dpnp.dpnp_iface_counting &mdash; Data Parallel Extension for NumPy 0.16.0dev0+155.g78b0bee505 documentation</title>
15+
<title>dpnp.dpnp_iface_counting &mdash; Data Parallel Extension for NumPy 0.16.0dev0+165.g39109869f0f documentation</title>
1616
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1717
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
1818

@@ -23,7 +23,7 @@
2323

2424
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2525
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
26-
<script src="../../_static/documentation_options.js?v=e1b9974c"></script>
26+
<script src="../../_static/documentation_options.js?v=f22b0320"></script>
2727
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2828
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2929
<script src="../../_static/js/theme.js"></script>
@@ -43,7 +43,7 @@
4343
Data Parallel Extension for NumPy
4444
</a>
4545
<div class="version">
46-
0.16.0dev0+155.g78b0bee505
46+
0.16.0dev0+165.g39109869f0f
4747
</div>
4848
<div role="search">
4949
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">

pull/1980/_modules/dpnp/dpnp_iface_histograms.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</script>
1313

1414
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
15-
<title>dpnp.dpnp_iface_histograms &mdash; Data Parallel Extension for NumPy 0.16.0dev0+155.g78b0bee505 documentation</title>
15+
<title>dpnp.dpnp_iface_histograms &mdash; Data Parallel Extension for NumPy 0.16.0dev0+165.g39109869f0f documentation</title>
1616
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1717
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
1818

@@ -23,7 +23,7 @@
2323

2424
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2525
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
26-
<script src="../../_static/documentation_options.js?v=e1b9974c"></script>
26+
<script src="../../_static/documentation_options.js?v=f22b0320"></script>
2727
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2828
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2929
<script src="../../_static/js/theme.js"></script>
@@ -43,7 +43,7 @@
4343
Data Parallel Extension for NumPy
4444
</a>
4545
<div class="version">
46-
0.16.0dev0+155.g78b0bee505
46+
0.16.0dev0+165.g39109869f0f
4747
</div>
4848
<div role="search">
4949
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">

pull/1980/_modules/dpnp/dpnp_iface_indexing.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</script>
1313

1414
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
15-
<title>dpnp.dpnp_iface_indexing &mdash; Data Parallel Extension for NumPy 0.16.0dev0+155.g78b0bee505 documentation</title>
15+
<title>dpnp.dpnp_iface_indexing &mdash; Data Parallel Extension for NumPy 0.16.0dev0+165.g39109869f0f documentation</title>
1616
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1717
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
1818

@@ -23,7 +23,7 @@
2323

2424
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2525
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
26-
<script src="../../_static/documentation_options.js?v=e1b9974c"></script>
26+
<script src="../../_static/documentation_options.js?v=f22b0320"></script>
2727
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2828
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2929
<script src="../../_static/js/theme.js"></script>
@@ -43,7 +43,7 @@
4343
Data Parallel Extension for NumPy
4444
</a>
4545
<div class="version">
46-
0.16.0dev0+155.g78b0bee505
46+
0.16.0dev0+165.g39109869f0f
4747
</div>
4848
<div role="search">
4949
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">

pull/1980/_modules/dpnp/dpnp_iface_libmath.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</script>
1313

1414
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
15-
<title>dpnp.dpnp_iface_libmath &mdash; Data Parallel Extension for NumPy 0.16.0dev0+155.g78b0bee505 documentation</title>
15+
<title>dpnp.dpnp_iface_libmath &mdash; Data Parallel Extension for NumPy 0.16.0dev0+165.g39109869f0f documentation</title>
1616
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1717
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=19f00094" />
1818

@@ -23,7 +23,7 @@
2323

2424
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2525
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
26-
<script src="../../_static/documentation_options.js?v=e1b9974c"></script>
26+
<script src="../../_static/documentation_options.js?v=f22b0320"></script>
2727
<script src="../../_static/doctools.js?v=9a2dae69"></script>
2828
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2929
<script src="../../_static/js/theme.js"></script>
@@ -43,7 +43,7 @@
4343
Data Parallel Extension for NumPy
4444
</a>
4545
<div class="version">
46-
0.16.0dev0+155.g78b0bee505
46+
0.16.0dev0+165.g39109869f0f
4747
</div>
4848
<div role="search">
4949
<form id="rtd-search-form" class="wy-form" action="../../search.html" method="get">

0 commit comments

Comments
 (0)