Skip to content

Commit

Permalink
deploy: 515b48e
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Mar 29, 2024
1 parent f2a6dbc commit 9d7618a
Show file tree
Hide file tree
Showing 9 changed files with 526 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pull/1414/.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: 362ee32a01dbc1b03acf48a56773ac9c
config: 39562050a8fcb6efff1d6b1315061741
tags: 645f666f9bcd5a90fca523b33c5a78b7
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@

:orphan:

numba_dpex.core.parfors.parfor_pass
===================================

.. py:module:: numba_dpex.core.parfors.parfor_pass
.. autoapi-nested-parse::

This module follows the logic of numba/parfors/parfor.py with changes required
to use it with dpnp instead of numpy.



Overview
--------

.. list-table:: Classes
:header-rows: 0
:widths: auto
:class: summarytable

* - :py:obj:`ConvertDPNPPass <numba_dpex.core.parfors.parfor_pass.ConvertDPNPPass>`
- Convert supported Dpnp functions, as well as arrayexpr nodes, to
* - :py:obj:`ParforPass <numba_dpex.core.parfors.parfor_pass.ParforPass>`
- Based on the NumpyParforPass. Lot's of code was copy-pasted, with minor


.. list-table:: Function
:header-rows: 0
:widths: auto
:class: summarytable

* - :py:obj:`get_dpnp_ufunc_typ <numba_dpex.core.parfors.parfor_pass.get_dpnp_ufunc_typ>`\ (func)
- get type of the incoming function from builtin registry



Classes
-------

.. py:class:: ConvertDPNPPass(pass_states)
Bases: :py:obj:`numba.parfors.parfor.ConvertNumpyPass`

Convert supported Dpnp functions, as well as arrayexpr nodes, to
parfor nodes.

Based on the ConvertNumpyPass. Lot's of code was copy-pasted, with minor
changes due to lack of extensibility of the original package.




.. py:class:: ParforPass
Bases: :py:obj:`numba.core.typed_passes.ParforPass`

Based on the NumpyParforPass. Lot's of code was copy-pasted, with minor
changes due to lack of extensibility of the original package.


.. rubric:: Overview


.. list-table:: Methods
:header-rows: 0
:widths: auto
:class: summarytable

* - :py:obj:`run_pass <numba_dpex.core.parfors.parfor_pass.ParforPass.run_pass>`\ (state)
- Convert data-parallel computations into Parfor nodes.


.. rubric:: Members

.. py:method:: run_pass(state)
Convert data-parallel computations into Parfor nodes.

Exactly same as the original one, but with mock to _ParforPass.




Functions
---------
.. py:function:: get_dpnp_ufunc_typ(func)
get type of the incoming function from builtin registry





Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ Functions
:raises NotImplementedError: When the function is called directly from Python.


.. py:function:: call_kernel(kernel_fn, index_range: numba_dpex.kernel_api.ranges.Range | numba_dpex.kernel_api.ranges.NdRange, *kernel_args)
.. py:function:: call_kernel(kernel_fn, index_range: Union[numba_dpex.kernel_api.ranges.Range, numba_dpex.kernel_api.ranges.NdRange], *kernel_args)
Mocks the launching of a kernel function over either a Range or NdRange.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Overview

Functions
---------
.. py:function:: call_kernel(kernel_fn, index_range: numba_dpex.kernel_api.ranges.Range | numba_dpex.kernel_api.ranges.NdRange, *kernel_args)
.. py:function:: call_kernel(kernel_fn, index_range: Union[numba_dpex.kernel_api.ranges.Range, numba_dpex.kernel_api.ranges.NdRange], *kernel_args)
Mocks the launching of a kernel function over either a Range or NdRange.

Expand Down
399 changes: 399 additions & 0 deletions pull/1414/autoapi/numba_dpex/core/parfors/parfor_pass/index.html

Large diffs are not rendered by default.

25 changes: 21 additions & 4 deletions pull/1414/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,8 @@ <h2>C</h2>
<li><a href="autoapi/numba_dpex/kernel_api/index.html#numba_dpex.kernel_api.AddressSpace.CONSTANT">CONSTANT (AddressSpace attribute)</a>, <a href="autoapi/numba_dpex/kernel_api/memory_enums/index.html#numba_dpex.kernel_api.memory_enums.AddressSpace.CONSTANT">[1]</a>
</li>
<li><a href="autoapi/numba_dpex/kernel_api/index.html#numba_dpex.kernel_api.MemoryOrder.CONSUME_UNSUPPORTED">CONSUME_UNSUPPORTED (MemoryOrder attribute)</a>, <a href="autoapi/numba_dpex/kernel_api/memory_enums/index.html#numba_dpex.kernel_api.memory_enums.MemoryOrder.CONSUME_UNSUPPORTED">[1]</a>
</li>
<li><a href="autoapi/numba_dpex/core/parfors/parfor_pass/index.html#numba_dpex.core.parfors.parfor_pass.ConvertDPNPPass">ConvertDPNPPass (class in numba_dpex.core.parfors.parfor_pass)</a>
</li>
<li><a href="autoapi/numba_dpex/core/index.html#numba_dpex.core.Array.copy">copy() (Array method)</a>, <a href="autoapi/numba_dpex/core/types/array_type/index.html#numba_dpex.core.types.array_type.Array.copy">[1]</a>, <a href="autoapi/numba_dpex/core/types/index.html#numba_dpex.core.types.Array.copy">[2]</a>

Expand Down Expand Up @@ -667,6 +669,8 @@ <h2>G</h2>
<li><a href="autoapi/numba_dpex/core/datamodel/models/index.html#numba_dpex.core.datamodel.models.GenericPointerModel">GenericPointerModel (class in numba_dpex.core.datamodel.models)</a>
</li>
<li><a href="autoapi/numba_dpex/core/boxing/index.html#id4">get() (Range method)</a>, <a href="autoapi/numba_dpex/core/boxing/index.html#numba_dpex.core.boxing.Range.get">[1]</a>, <a href="autoapi/numba_dpex/kernel_api/index.html#numba_dpex.kernel_api.Range.get">[2]</a>, <a href="autoapi/numba_dpex/kernel_api/ranges/index.html#numba_dpex.kernel_api.ranges.Range.get">[3]</a>
</li>
<li><a href="autoapi/numba_dpex/core/parfors/parfor_pass/index.html#numba_dpex.core.parfors.parfor_pass.get_dpnp_ufunc_typ">get_dpnp_ufunc_typ() (in module numba_dpex.core.parfors.parfor_pass)</a>
</li>
<li><a href="autoapi/numba_dpex/core/datamodel/models/index.html#numba_dpex.core.datamodel.models.get_flattened_member_count">get_flattened_member_count() (in module numba_dpex.core.datamodel.models)</a>
</li>
Expand Down Expand Up @@ -1021,6 +1025,8 @@ <h2>M</h2>
<li><a href="autoapi/numba_dpex/core/parfors/kernel_templates/reduction_template/index.html#module-numba_dpex.core.parfors.kernel_templates.reduction_template">numba_dpex.core.parfors.kernel_templates.reduction_template</a>
</li>
<li><a href="autoapi/numba_dpex/core/parfors/parfor_lowerer/index.html#module-numba_dpex.core.parfors.parfor_lowerer">numba_dpex.core.parfors.parfor_lowerer</a>
</li>
<li><a href="autoapi/numba_dpex/core/parfors/parfor_pass/index.html#module-numba_dpex.core.parfors.parfor_pass">numba_dpex.core.parfors.parfor_pass</a>
</li>
<li><a href="autoapi/numba_dpex/core/parfors/reduction_helper/index.html#module-numba_dpex.core.parfors.reduction_helper">numba_dpex.core.parfors.reduction_helper</a>
</li>
Expand Down Expand Up @@ -1343,6 +1349,13 @@ <h2>N</h2>

<ul>
<li><a href="autoapi/numba_dpex/core/parfors/parfor_lowerer/index.html#module-numba_dpex.core.parfors.parfor_lowerer">module</a>
</li>
</ul></li>
<li>
numba_dpex.core.parfors.parfor_pass

<ul>
<li><a href="autoapi/numba_dpex/core/parfors/parfor_pass/index.html#module-numba_dpex.core.parfors.parfor_pass">module</a>
</li>
</ul></li>
<li>
Expand Down Expand Up @@ -1373,15 +1386,15 @@ <h2>N</h2>
<li><a href="autoapi/numba_dpex/core/passes/dufunc_inliner/index.html#module-numba_dpex.core.passes.dufunc_inliner">module</a>
</li>
</ul></li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li>
numba_dpex.core.passes.parfor_legalize_cfd_pass

<ul>
<li><a href="autoapi/numba_dpex/core/passes/parfor_legalize_cfd_pass/index.html#module-numba_dpex.core.passes.parfor_legalize_cfd_pass">module</a>
</li>
</ul></li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li>
numba_dpex.core.passes.passes

Expand Down Expand Up @@ -1693,6 +1706,8 @@ <h2>P</h2>
<li><a href="autoapi/numba_dpex/core/parfors/parfor_lowerer/index.html#numba_dpex.core.parfors.parfor_lowerer.ParforLowerFactory">ParforLowerFactory (class in numba_dpex.core.parfors.parfor_lowerer)</a>
</li>
<li><a href="autoapi/numba_dpex/core/parfors/parfor_lowerer/index.html#numba_dpex.core.parfors.parfor_lowerer.ParforLowerImpl">ParforLowerImpl (class in numba_dpex.core.parfors.parfor_lowerer)</a>
</li>
<li><a href="autoapi/numba_dpex/core/parfors/parfor_pass/index.html#numba_dpex.core.parfors.parfor_pass.ParforPass">ParforPass (class in numba_dpex.core.parfors.parfor_pass)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
Expand Down Expand Up @@ -1762,10 +1777,10 @@ <h2>R</h2>
</ul></li>
<li><a href="autoapi/numba_dpex/core/parfors/reduction_helper/index.html#numba_dpex.core.parfors.reduction_helper.ReductionHelper">ReductionHelper (class in numba_dpex.core.parfors.reduction_helper)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="autoapi/numba_dpex/core/parfors/reduction_helper/index.html#numba_dpex.core.parfors.reduction_helper.ReductionKernelVariables">ReductionKernelVariables (class in numba_dpex.core.parfors.reduction_helper)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="autoapi/numba_dpex/core/lowering/index.html#numba_dpex.core.lowering.registry">registry (in module numba_dpex.core.lowering)</a>

<ul>
Expand All @@ -1788,6 +1803,8 @@ <h2>R</h2>
<li><a href="autoapi/numba_dpex/core/passes/index.html#numba_dpex.core.passes.NoPythonBackend.run_pass">(NoPythonBackend method)</a>, <a href="autoapi/numba_dpex/core/passes/passes/index.html#numba_dpex.core.passes.passes.NoPythonBackend.run_pass">[1]</a>
</li>
<li><a href="autoapi/numba_dpex/core/passes/index.html#numba_dpex.core.passes.ParforLegalizeCFDPass.run_pass">(ParforLegalizeCFDPass method)</a>, <a href="autoapi/numba_dpex/core/passes/parfor_legalize_cfd_pass/index.html#numba_dpex.core.passes.parfor_legalize_cfd_pass.ParforLegalizeCFDPass.run_pass">[1]</a>
</li>
<li><a href="autoapi/numba_dpex/core/parfors/parfor_pass/index.html#numba_dpex.core.parfors.parfor_pass.ParforPass.run_pass">(ParforPass method)</a>
</li>
<li><a href="autoapi/numba_dpex/core/passes/passes/index.html#numba_dpex.core.passes.passes.QualNameDisambiguationLowering.run_pass">(QualNameDisambiguationLowering method)</a>
</li>
Expand Down
Binary file modified pull/1414/objects.inv
Binary file not shown.
6 changes: 6 additions & 0 deletions pull/1414/py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,12 @@ <h1>Python Module Index</h1>
<a href="autoapi/numba_dpex/core/parfors/parfor_lowerer/index.html#module-numba_dpex.core.parfors.parfor_lowerer"><code class="xref">numba_dpex.core.parfors.parfor_lowerer</code></a></td><td>
<em></em></td>
</tr>
<tr class="cg-1">
<td></td>
<td>&#160;&#160;&#160;
<a href="autoapi/numba_dpex/core/parfors/parfor_pass/index.html#module-numba_dpex.core.parfors.parfor_pass"><code class="xref">numba_dpex.core.parfors.parfor_pass</code></a></td><td>
<em></em></td>
</tr>
<tr class="cg-1">
<td></td>
<td>&#160;&#160;&#160;
Expand Down
2 changes: 1 addition & 1 deletion pull/1414/searchindex.js

Large diffs are not rendered by default.

0 comments on commit 9d7618a

Please sign in to comment.