Skip to content

Commit

Permalink
Merge pull request #1049 from IntelPython/feature/remove_numpy_array_…
Browse files Browse the repository at this point in the history
…kernelargs

Feature/remove numpy array kernelargs e7a4420
  • Loading branch information
github-actions[bot] committed May 22, 2023
1 parent 050b7e5 commit f63b140
Show file tree
Hide file tree
Showing 132 changed files with 156 additions and 513 deletions.
2 changes: 1 addition & 1 deletion dev/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 5342ec0b2b847f3f74d44b2717e1e094
config: 13e6b7fb15e4adb413524f2625530a5e
tags: 645f666f9bcd5a90fca523b33c5a78b7
2 changes: 1 addition & 1 deletion dev/CoreFeatures.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Code-generation based on a device &mdash; numba-dpex 0.21.0dev0+35.g6aca7c31 documentation</title>
<title>Code-generation based on a device &mdash; numba-dpex 0.21.0dev0+43.ge7a44206 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
1 change: 0 additions & 1 deletion dev/_sources/apidoc/numba_dpex.utils.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Submodules
numba_dpex.utils.array_utils
numba_dpex.utils.constants
numba_dpex.utils.llvm_codegen_helpers
numba_dpex.utils.type_conversion_fns

Module contents
---------------
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion dev/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '0.21.0dev0+35.g6aca7c31',
VERSION: '0.21.0dev0+43.ge7a44206',
LANGUAGE: 'en',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
2 changes: 1 addition & 1 deletion dev/apidoc/modules.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>numba_dpex &mdash; numba-dpex 0.21.0dev0+35.g6aca7c31 documentation</title>
<title>numba_dpex &mdash; numba-dpex 0.21.0dev0+43.ge7a44206 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion dev/apidoc/numba_dpex.config.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>numba_dpex.config module &mdash; numba-dpex 0.21.0dev0+35.g6aca7c31 documentation</title>
<title>numba_dpex.config module &mdash; numba-dpex 0.21.0dev0+43.ge7a44206 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion dev/apidoc/numba_dpex.core.caching.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>numba_dpex.core.caching module &mdash; numba-dpex 0.21.0dev0+35.g6aca7c31 documentation</title>
<title>numba_dpex.core.caching module &mdash; numba-dpex 0.21.0dev0+43.ge7a44206 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion dev/apidoc/numba_dpex.core.codegen.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>numba_dpex.core.codegen module &mdash; numba-dpex 0.21.0dev0+35.g6aca7c31 documentation</title>
<title>numba_dpex.core.codegen module &mdash; numba-dpex 0.21.0dev0+43.ge7a44206 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion dev/apidoc/numba_dpex.core.compiler.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>numba_dpex.core.compiler module &mdash; numba-dpex 0.21.0dev0+35.g6aca7c31 documentation</title>
<title>numba_dpex.core.compiler module &mdash; numba-dpex 0.21.0dev0+43.ge7a44206 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion dev/apidoc/numba_dpex.core.datamodel.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>numba_dpex.core.datamodel package &mdash; numba-dpex 0.21.0dev0+35.g6aca7c31 documentation</title>
<title>numba_dpex.core.datamodel package &mdash; numba-dpex 0.21.0dev0+43.ge7a44206 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion dev/apidoc/numba_dpex.core.datamodel.models.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>numba_dpex.core.datamodel.models module &mdash; numba-dpex 0.21.0dev0+35.g6aca7c31 documentation</title>
<title>numba_dpex.core.datamodel.models module &mdash; numba-dpex 0.21.0dev0+43.ge7a44206 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion dev/apidoc/numba_dpex.core.descriptor.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>numba_dpex.core.descriptor module &mdash; numba-dpex 0.21.0dev0+35.g6aca7c31 documentation</title>
<title>numba_dpex.core.descriptor module &mdash; numba-dpex 0.21.0dev0+43.ge7a44206 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion dev/apidoc/numba_dpex.core.dpjit_dispatcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>numba_dpex.core.dpjit_dispatcher module &mdash; numba-dpex 0.21.0dev0+35.g6aca7c31 documentation</title>
<title>numba_dpex.core.dpjit_dispatcher module &mdash; numba-dpex 0.21.0dev0+43.ge7a44206 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
40 changes: 4 additions & 36 deletions dev/apidoc/numba_dpex.core.exceptions.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>numba_dpex.core.exceptions module &mdash; numba-dpex 0.21.0dev0+35.g6aca7c31 documentation</title>
<title>numba_dpex.core.exceptions module &mdash; numba-dpex 0.21.0dev0+43.ge7a44206 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down Expand Up @@ -96,8 +96,8 @@
<span id="numba-dpex-core-exceptions-module"></span><h1>numba_dpex.core.exceptions module<a class="headerlink" href="#module-numba_dpex.core.exceptions" title="Permalink to this heading"></a></h1>
<p>The module defines the custom error classes used in numba_dpex.</p>
<dl class="py exception">
<dt class="sig sig-object py" id="numba_dpex.core.exceptions.ComputeFollowsDataInferenceError">
<em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">numba_dpex.core.exceptions.</span></span><span class="sig-name descname"><span class="pre">ComputeFollowsDataInferenceError</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">kernel_name</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">ndarray_argnum_list</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">*</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">usmarray_argnum_list</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#numba_dpex.core.exceptions.ComputeFollowsDataInferenceError" title="Permalink to this definition"></a></dt>
<dt class="sig sig-object py" id="numba_dpex.core.exceptions.ExecutionQueueInferenceError">
<em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">numba_dpex.core.exceptions.</span></span><span class="sig-name descname"><span class="pre">ExecutionQueueInferenceError</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">kernel_name</span></span></em>, <em class="sig-param"><span class="o"><span class="pre">*</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">usmarray_argnum_list</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#numba_dpex.core.exceptions.ExecutionQueueInferenceError" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">Exception</span></code></p>
<p>Exception raised when an execution queue for a given array expression or
a kernel function could not be deduced using the compute-follows-data
Expand All @@ -108,36 +108,19 @@
kernel function. The execution queue is deduced based on the device on
which the array operands were allocated. Computation is required to occur
on the same device where the arrays currently reside.</p>
<p>A ComputeFollowsDataInferenceError is raised when the execution queue using
<p>A ExecutionQueueInferenceError is raised when the execution queue using
compute-follows-data rules could not be deduced. It may happen when arrays
that have a device attribute such as <code class="docutils literal notranslate"><span class="pre">dpctl.tensor.usm_ndarray</span></code> are mixed
with host arrays such as <code class="docutils literal notranslate"><span class="pre">numpy.ndarray</span></code>. The error may also be raised if
the array operands are allocated on different devices.</p>
<dl class="simple">
<dt>Args:</dt><dd><p>kernel_name : Name of the kernel function for which the error occurred.
ndarray_argnum_list: The list of <code class="docutils literal notranslate"><span class="pre">numpy.ndarray</span></code> arguments identified
by the argument position that caused the error.
usmarray_argnum_list: The list of <code class="docutils literal notranslate"><span class="pre">dpctl.tensor.usm_ndarray</span></code> arguments
identified by the argument position that caused the error.</p>
</dd>
</dl>
</dd></dl>

<dl class="py exception">
<dt class="sig sig-object py" id="numba_dpex.core.exceptions.ExecutionQueueInferenceError">
<em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">numba_dpex.core.exceptions.</span></span><span class="sig-name descname"><span class="pre">ExecutionQueueInferenceError</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">kernel_name</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#numba_dpex.core.exceptions.ExecutionQueueInferenceError" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">Exception</span></code></p>
<p>Exception raised when an execution queue could not be deduced for NumPy
ndarray kernel arguments.</p>
<dl class="simple">
<dt>Args:</dt><dd><p>kernel_name (str): Name of kernel where the error was raised.</p>
</dd>
</dl>
<div class="deprecated">
<p><span class="versionmodified deprecated">Deprecated since version 0.19.</span></p>
</div>
</dd></dl>

<dl class="py exception">
<dt class="sig sig-object py" id="numba_dpex.core.exceptions.IllegalRangeValueError">
<em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">numba_dpex.core.exceptions.</span></span><span class="sig-name descname"><span class="pre">IllegalRangeValueError</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">kernel_name</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#numba_dpex.core.exceptions.IllegalRangeValueError" title="Permalink to this definition"></a></dt>
Expand Down Expand Up @@ -276,21 +259,6 @@
the compiler code.</p>
</dd></dl>

<dl class="py exception">
<dt class="sig sig-object py" id="numba_dpex.core.exceptions.UnsupportedAccessQualifierError">
<em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">numba_dpex.core.exceptions.</span></span><span class="sig-name descname"><span class="pre">UnsupportedAccessQualifierError</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">kernel_name</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">array_val</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">illegal_access_type</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">legal_access_list</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#numba_dpex.core.exceptions.UnsupportedAccessQualifierError" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">Exception</span></code></p>
<p>Exception raised when an illegal access specifier value is specified for
a NumPy array argument passed to a kernel.</p>
<dl class="simple">
<dt>Args:</dt><dd><p>kernel_name (str): Name of kernel where the error was raised.
array_val: name of the array argument with the illegal access specifier.
illegal_access_type (str): The illegal access specifier string.
legal_access_list (str): Joined string for the legal access specifiers.</p>
</dd>
</dl>
</dd></dl>

<dl class="py exception">
<dt class="sig sig-object py" id="numba_dpex.core.exceptions.UnsupportedBackendError">
<em class="property"><span class="pre">exception</span><span class="w"> </span></em><span class="sig-prename descclassname"><span class="pre">numba_dpex.core.exceptions.</span></span><span class="sig-name descname"><span class="pre">UnsupportedBackendError</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">kernel_name</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">backend</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">supported_backends</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#numba_dpex.core.exceptions.UnsupportedBackendError" title="Permalink to this definition"></a></dt>
Expand Down
5 changes: 1 addition & 4 deletions dev/apidoc/numba_dpex.core.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>numba_dpex.core package &mdash; numba-dpex 0.21.0dev0+35.g6aca7c31 documentation</title>
<title>numba_dpex.core package &mdash; numba-dpex 0.21.0dev0+43.ge7a44206 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down Expand Up @@ -119,7 +119,6 @@ <h2>Subpackages<a class="headerlink" href="#subpackages" title="Permalink to thi
</li>
<li class="toctree-l3"><a class="reference internal" href="numba_dpex.core.kernel_interface.dispatcher.html">numba_dpex.core.kernel_interface.dispatcher module</a><ul>
<li class="toctree-l4"><a class="reference internal" href="numba_dpex.core.kernel_interface.dispatcher.html#numba_dpex.core.kernel_interface.dispatcher.JitKernel"><code class="docutils literal notranslate"><span class="pre">JitKernel</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="numba_dpex.core.kernel_interface.dispatcher.html#numba_dpex.core.kernel_interface.dispatcher.get_ordered_arg_access_types"><code class="docutils literal notranslate"><span class="pre">get_ordered_arg_access_types()</span></code></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="numba_dpex.core.kernel_interface.func.html">numba_dpex.core.kernel_interface.func module</a><ul>
Expand Down Expand Up @@ -470,7 +469,6 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="numba_dpex.core.exceptions.html">numba_dpex.core.exceptions module</a><ul>
<li class="toctree-l2"><a class="reference internal" href="numba_dpex.core.exceptions.html#numba_dpex.core.exceptions.ComputeFollowsDataInferenceError"><code class="docutils literal notranslate"><span class="pre">ComputeFollowsDataInferenceError</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="numba_dpex.core.exceptions.html#numba_dpex.core.exceptions.ExecutionQueueInferenceError"><code class="docutils literal notranslate"><span class="pre">ExecutionQueueInferenceError</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="numba_dpex.core.exceptions.html#numba_dpex.core.exceptions.IllegalRangeValueError"><code class="docutils literal notranslate"><span class="pre">IllegalRangeValueError</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="numba_dpex.core.exceptions.html#numba_dpex.core.exceptions.InvalidKernelLaunchArgsError"><code class="docutils literal notranslate"><span class="pre">InvalidKernelLaunchArgsError</span></code></a></li>
Expand All @@ -482,7 +480,6 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this
<li class="toctree-l2"><a class="reference internal" href="numba_dpex.core.exceptions.html#numba_dpex.core.exceptions.UnknownGlobalRangeError"><code class="docutils literal notranslate"><span class="pre">UnknownGlobalRangeError</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="numba_dpex.core.exceptions.html#numba_dpex.core.exceptions.UnmatchedNumberOfRangeDimsError"><code class="docutils literal notranslate"><span class="pre">UnmatchedNumberOfRangeDimsError</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="numba_dpex.core.exceptions.html#numba_dpex.core.exceptions.UnreachableError"><code class="docutils literal notranslate"><span class="pre">UnreachableError</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="numba_dpex.core.exceptions.html#numba_dpex.core.exceptions.UnsupportedAccessQualifierError"><code class="docutils literal notranslate"><span class="pre">UnsupportedAccessQualifierError</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="numba_dpex.core.exceptions.html#numba_dpex.core.exceptions.UnsupportedBackendError"><code class="docutils literal notranslate"><span class="pre">UnsupportedBackendError</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="numba_dpex.core.exceptions.html#numba_dpex.core.exceptions.UnsupportedCompilationModeError"><code class="docutils literal notranslate"><span class="pre">UnsupportedCompilationModeError</span></code></a></li>
<li class="toctree-l2"><a class="reference internal" href="numba_dpex.core.exceptions.html#numba_dpex.core.exceptions.UnsupportedGroupWorkItemSizeError"><code class="docutils literal notranslate"><span class="pre">UnsupportedGroupWorkItemSizeError</span></code></a></li>
Expand Down
2 changes: 1 addition & 1 deletion dev/apidoc/numba_dpex.core.itanium_mangler.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</script>

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>numba_dpex.core.itanium_mangler module &mdash; numba-dpex 0.21.0dev0+35.g6aca7c31 documentation</title>
<title>numba_dpex.core.itanium_mangler module &mdash; numba-dpex 0.21.0dev0+43.ge7a44206 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
Loading

0 comments on commit f63b140

Please sign in to comment.