Skip to content

Commit 0e05fa4

Browse files
Apply fallback to numpy for all unsupported functions on cuda devices. f41d588
1 parent c7cf0da commit 0e05fa4

File tree

1,822 files changed

+24981
-5951
lines changed

Some content is hidden

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

1,822 files changed

+24981
-5951
lines changed

pull/2075/.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 records the configuration used when building these files. When it is not found, a full rebuild will be done.
3-
config: 6032ff3273e710a6cf7e97dfcd299854
3+
config: 4c18144c2666331bc98840808af3efe2
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

pull/2075/_modules/dpnp/dpnp_array.html

Lines changed: 64 additions & 81 deletions
Large diffs are not rendered by default.

pull/2075/_modules/dpnp/dpnp_flatiter.html

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
</script>
1515

1616
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
17-
<title>dpnp.dpnp_flatiter &mdash; Data Parallel Extension for NumPy 0.17.0dev1+38.g4c47d64aca0 documentation</title>
17+
<title>dpnp.dpnp_flatiter &mdash; Data Parallel Extension for NumPy 0.17.0dev2+52.gf41d588cc9a documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=e59714d7" />
2020

2121

2222
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2323
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
24-
<script src="../../_static/documentation_options.js?v=ac545868"></script>
24+
<script src="../../_static/documentation_options.js?v=673cd2fa"></script>
2525
<script src="../../_static/doctools.js?v=9bcbadda"></script>
2626
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2727
<script src="../../_static/js/theme.js"></script>
@@ -147,44 +147,32 @@ <h1>Source code for dpnp.dpnp_flatiter</h1><div class="highlight"><pre>
147147
<span class="n">multi_index</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="o">=</span> <span class="n">i_</span>
148148
<span class="k">return</span> <span class="nb">tuple</span><span class="p">(</span><span class="n">multi_index</span><span class="p">)</span>
149149

150-
<div class="viewcode-block" id="flatiter.__getitem__">
151-
<a class="viewcode-back" href="../../reference/generated/dpnp.flatiter.html#dpnp.flatiter.__getitem__">[docs]</a>
152150
<span class="k">def</span> <span class="fm">__getitem__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">key</span><span class="p">):</span>
153151
<span class="n">idx</span> <span class="o">=</span> <span class="nb">getattr</span><span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="s2">&quot;__index__&quot;</span><span class="p">,</span> <span class="kc">None</span><span class="p">)</span>
154152
<span class="k">if</span> <span class="ow">not</span> <span class="nb">callable</span><span class="p">(</span><span class="n">idx</span><span class="p">):</span>
155153
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="n">key</span><span class="p">)</span>
156154
<span class="n">i</span> <span class="o">=</span> <span class="n">idx</span><span class="p">()</span>
157155
<span class="n">mi</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_multiindex</span><span class="p">(</span><span class="n">i</span><span class="p">)</span>
158-
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">arr_</span><span class="o">.</span><span class="fm">__getitem__</span><span class="p">(</span><span class="n">mi</span><span class="p">)</span></div>
156+
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">arr_</span><span class="o">.</span><span class="fm">__getitem__</span><span class="p">(</span><span class="n">mi</span><span class="p">)</span>
159157

160-
161-
<div class="viewcode-block" id="flatiter.__setitem__">
162-
<a class="viewcode-back" href="../../reference/generated/dpnp.flatiter.html#dpnp.flatiter.__setitem__">[docs]</a>
163158
<span class="k">def</span> <span class="fm">__setitem__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">key</span><span class="p">,</span> <span class="n">val</span><span class="p">):</span>
164159
<span class="n">idx</span> <span class="o">=</span> <span class="nb">getattr</span><span class="p">(</span><span class="n">key</span><span class="p">,</span> <span class="s2">&quot;__index__&quot;</span><span class="p">,</span> <span class="kc">None</span><span class="p">)</span>
165160
<span class="k">if</span> <span class="ow">not</span> <span class="nb">callable</span><span class="p">(</span><span class="n">idx</span><span class="p">):</span>
166161
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="n">key</span><span class="p">)</span>
167162
<span class="n">i</span> <span class="o">=</span> <span class="n">idx</span><span class="p">()</span>
168163
<span class="n">mi</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_multiindex</span><span class="p">(</span><span class="n">i</span><span class="p">)</span>
169-
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">arr_</span><span class="o">.</span><span class="fm">__setitem__</span><span class="p">(</span><span class="n">mi</span><span class="p">,</span> <span class="n">val</span><span class="p">)</span></div>
170-
164+
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">arr_</span><span class="o">.</span><span class="fm">__setitem__</span><span class="p">(</span><span class="n">mi</span><span class="p">,</span> <span class="n">val</span><span class="p">)</span>
171165

172-
<div class="viewcode-block" id="flatiter.__iter__">
173-
<a class="viewcode-back" href="../../reference/generated/dpnp.flatiter.html#dpnp.flatiter.__iter__">[docs]</a>
174166
<span class="k">def</span> <span class="fm">__iter__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
175-
<span class="k">return</span> <span class="bp">self</span></div>
167+
<span class="k">return</span> <span class="bp">self</span>
176168

177-
178-
<div class="viewcode-block" id="flatiter.__next__">
179-
<a class="viewcode-back" href="../../reference/generated/dpnp.flatiter.html#dpnp.flatiter.__next__">[docs]</a>
180169
<span class="k">def</span> <span class="fm">__next__</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
181170
<span class="k">if</span> <span class="bp">self</span><span class="o">.</span><span class="n">i_</span> <span class="o">&lt;</span> <span class="bp">self</span><span class="o">.</span><span class="n">size_</span><span class="p">:</span>
182171
<span class="n">val</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="fm">__getitem__</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">i_</span><span class="p">)</span>
183172
<span class="bp">self</span><span class="o">.</span><span class="n">i_</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">i_</span> <span class="o">+</span> <span class="mi">1</span>
184173
<span class="k">return</span> <span class="n">val</span>
185174
<span class="k">else</span><span class="p">:</span>
186175
<span class="k">raise</span> <span class="ne">StopIteration</span></div>
187-
</div>
188176

189177
</pre></div>
190178

pull/2075/_modules/dpnp/dpnp_iface.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
</script>
1515

1616
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
17-
<title>dpnp.dpnp_iface &mdash; Data Parallel Extension for NumPy 0.17.0dev1+38.g4c47d64aca0 documentation</title>
17+
<title>dpnp.dpnp_iface &mdash; Data Parallel Extension for NumPy 0.17.0dev2+52.gf41d588cc9a documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=e59714d7" />
2020

2121

2222
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2323
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
24-
<script src="../../_static/documentation_options.js?v=ac545868"></script>
24+
<script src="../../_static/documentation_options.js?v=673cd2fa"></script>
2525
<script src="../../_static/doctools.js?v=9bcbadda"></script>
2626
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2727
<script src="../../_static/js/theme.js"></script>
@@ -855,7 +855,7 @@ <h1>Source code for dpnp.dpnp_iface</h1><div class="highlight"><pre>
855855
<span class="sd"> &quot;&quot;&quot;</span>
856856

857857
<span class="k">if</span> <span class="n">obj</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
858-
<span class="n">sycl_device</span> <span class="o">=</span> <span class="n">dpctl</span><span class="o">.</span><span class="n">SyclQueue</span><span class="p">()</span><span class="o">.</span><span class="n">sycl_device</span>
858+
<span class="n">sycl_device</span> <span class="o">=</span> <span class="n">dpctl</span><span class="o">.</span><span class="n">select_default_device</span><span class="p">()</span>
859859
<span class="k">elif</span> <span class="nb">isinstance</span><span class="p">(</span><span class="n">obj</span><span class="p">,</span> <span class="n">dpctl</span><span class="o">.</span><span class="n">SyclDevice</span><span class="p">):</span>
860860
<span class="n">sycl_device</span> <span class="o">=</span> <span class="n">obj</span>
861861
<span class="k">else</span><span class="p">:</span>

pull/2075/_modules/dpnp/dpnp_iface_arraycreation.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
</script>
1515

1616
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
17-
<title>dpnp.dpnp_iface_arraycreation &mdash; Data Parallel Extension for NumPy 0.17.0dev1+38.g4c47d64aca0 documentation</title>
17+
<title>dpnp.dpnp_iface_arraycreation &mdash; Data Parallel Extension for NumPy 0.17.0dev2+52.gf41d588cc9a documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=e59714d7" />
2020

2121

2222
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2323
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
24-
<script src="../../_static/documentation_options.js?v=ac545868"></script>
24+
<script src="../../_static/documentation_options.js?v=673cd2fa"></script>
2525
<script src="../../_static/doctools.js?v=9bcbadda"></script>
2626
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2727
<script src="../../_static/js/theme.js"></script>

pull/2075/_modules/dpnp/dpnp_iface_bitwise.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
</script>
1515

1616
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
17-
<title>dpnp.dpnp_iface_bitwise &mdash; Data Parallel Extension for NumPy 0.17.0dev1+38.g4c47d64aca0 documentation</title>
17+
<title>dpnp.dpnp_iface_bitwise &mdash; Data Parallel Extension for NumPy 0.17.0dev2+52.gf41d588cc9a documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=e59714d7" />
2020

2121

2222
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2323
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
24-
<script src="../../_static/documentation_options.js?v=ac545868"></script>
24+
<script src="../../_static/documentation_options.js?v=673cd2fa"></script>
2525
<script src="../../_static/doctools.js?v=9bcbadda"></script>
2626
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2727
<script src="../../_static/js/theme.js"></script>
@@ -228,6 +228,8 @@ <h1>Source code for dpnp.dpnp_iface_bitwise</h1><div class="highlight"><pre>
228228
<span class="s2">x2 : {dpnp.ndarray, usm_ndarray, scalar}</span>
229229
<span class="s2"> Second input array, also expected to have integer or boolean data</span>
230230
<span class="s2"> type. Both inputs `x1` and `x2` can not be scalars at the same time.</span>
231+
<span class="s2"> If ``x1.shape != x2.shape``, they must be broadcastable to a common shape</span>
232+
<span class="s2"> (which becomes the shape of the output).</span>
231233
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
232234
<span class="s2"> Output array to populate.</span>
233235
<span class="s2"> Array must have the correct shape and the expected data type.</span>
@@ -312,6 +314,8 @@ <h1>Source code for dpnp.dpnp_iface_bitwise</h1><div class="highlight"><pre>
312314
<span class="s2">x2 : {dpnp.ndarray, usm_ndarray, scalar}</span>
313315
<span class="s2"> Second input array, also expected to have integer or boolean data</span>
314316
<span class="s2"> type. Both inputs `x1` and `x2` can not be scalars at the same time.</span>
317+
<span class="s2"> If ``x1.shape != x2.shape``, they must be broadcastable to a common shape</span>
318+
<span class="s2"> (which becomes the shape of the output).</span>
315319
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
316320
<span class="s2"> Output array to populate.</span>
317321
<span class="s2"> Array must have the correct shape and the expected data type.</span>
@@ -387,6 +391,8 @@ <h1>Source code for dpnp.dpnp_iface_bitwise</h1><div class="highlight"><pre>
387391
<span class="s2">x2 : {dpnp.ndarray, usm_ndarray, scalar}</span>
388392
<span class="s2"> Second input array, also expected to have integer or boolean data</span>
389393
<span class="s2"> type. Both inputs `x1` and `x2` can not be scalars at the same time.</span>
394+
<span class="s2"> If ``x1.shape != x2.shape``, they must be broadcastable to a common shape</span>
395+
<span class="s2"> (which becomes the shape of the output).</span>
390396
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
391397
<span class="s2"> Output array to populate.</span>
392398
<span class="s2"> Array must have the correct shape and the expected data type.</span>
@@ -546,6 +552,8 @@ <h1>Source code for dpnp.dpnp_iface_bitwise</h1><div class="highlight"><pre>
546552
<span class="s2"> Second input array, also expected to have integer data type.</span>
547553
<span class="s2"> Each element must be greater than or equal to ``0``.</span>
548554
<span class="s2"> Both inputs `x1` and `x2` can not be scalars at the same time.</span>
555+
<span class="s2"> If ``x1.shape != x2.shape``, they must be broadcastable to a common shape</span>
556+
<span class="s2"> (which becomes the shape of the output).</span>
549557
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
550558
<span class="s2"> Output array to populate.</span>
551559
<span class="s2"> Array must have the correct shape and the expected data type.</span>
@@ -620,6 +628,8 @@ <h1>Source code for dpnp.dpnp_iface_bitwise</h1><div class="highlight"><pre>
620628
<span class="s2"> Second input array, also expected to have integer data type.</span>
621629
<span class="s2"> Each element must be greater than or equal to ``0``.</span>
622630
<span class="s2"> Both inputs `x1` and `x2` can not be scalars at the same time.</span>
631+
<span class="s2"> If ``x1.shape != x2.shape``, they must be broadcastable to a common shape</span>
632+
<span class="s2"> (which becomes the shape of the output).</span>
623633
<span class="s2">out : {None, dpnp.ndarray, usm_ndarray}, optional</span>
624634
<span class="s2"> Output array to populate.</span>
625635
<span class="s2"> Array must have the correct shape and the expected data type.</span>

pull/2075/_modules/dpnp/dpnp_iface_counting.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
</script>
1515

1616
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
17-
<title>dpnp.dpnp_iface_counting &mdash; Data Parallel Extension for NumPy 0.17.0dev1+38.g4c47d64aca0 documentation</title>
17+
<title>dpnp.dpnp_iface_counting &mdash; Data Parallel Extension for NumPy 0.17.0dev2+52.gf41d588cc9a documentation</title>
1818
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" />
1919
<link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=e59714d7" />
2020

2121

2222
<script src="../../_static/jquery.js?v=5d32c60e"></script>
2323
<script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
24-
<script src="../../_static/documentation_options.js?v=ac545868"></script>
24+
<script src="../../_static/documentation_options.js?v=673cd2fa"></script>
2525
<script src="../../_static/doctools.js?v=9bcbadda"></script>
2626
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script>
2727
<script src="../../_static/js/theme.js"></script>

0 commit comments

Comments
 (0)