Skip to content

Commit

Permalink
Merge pull request IntelPython#1477 from IntelPython/dependabot/githu…
Browse files Browse the repository at this point in the history
…b_actions/github/codeql-action-3.25.11

Bump github/codeql-action from 3.25.10 to 3.25.11 7c2939a
  • Loading branch information
github-actions[bot] committed Jul 7, 2024
1 parent 932787e commit ec21425
Show file tree
Hide file tree
Showing 136 changed files with 10,296 additions and 3,249 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: 0d9537beee7f5571dedc6534f308f4ed
config: 176ab6a223d1d9f57c3aada08ee0c8e7
tags: 645f666f9bcd5a90fca523b33c5a78b7
79 changes: 79 additions & 0 deletions dev/_sources/autoapi/numba_dpex/core/debuginfo/index.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@


:orphan:

numba_dpex.core.debuginfo
=========================

.. py:module:: numba_dpex.core.debuginfo
.. autoapi-nested-parse::

Implements a custom debug metadata generator class for numba-dpex kernels.





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

* - :py:obj:`DIBuilder <numba_dpex.core.debuginfo.DIBuilder>`
- Overrides Numba's default DIBuilder with numba-dpex-specific customizations.




Classes
-------

.. py:class:: DIBuilder(module, filepath, cgctx, directives_only)
Bases: :py:obj:`numba.core.debuginfo.DIBuilder`

Overrides Numba's default DIBuilder with numba-dpex-specific customizations.


.. rubric:: Overview


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

* - :py:obj:`mark_subprogram <numba_dpex.core.debuginfo.DIBuilder.mark_subprogram>`\ (function, qualname, argnames, argtypes, line)
- Sets DW_AT_name and DW_AT_linkagename tags for a kernel decorated function.


.. rubric:: Members

.. py:method:: mark_subprogram(function, qualname, argnames, argtypes, line)
Sets DW_AT_name and DW_AT_linkagename tags for a kernel decorated function.

Numba generates a unique name for every function it compiles, but in
upstream Numba the unique name is not used as the "qualified" name of
the function. The behavior leads to a bug discovered in Numba-dpex when
a compiled function uses closure variables.
Refer (https://github.com/IntelPython/numba-dpex/issues/898).
To resolve the issue numba-dpex uses the unique_name as the qualified
name. Refer to
:class:`numba_dpex.core.passes.passes.QualNameDisambiguationLowering`.
However, doing so breaks setting GDB breakpoints based on function
name as the function name is no longer what is in the source, but what
is the unique name generated by Numba. To fix it, numba-dpex uses a
modified DISubprogram metadata generator. The name (DW_AT_name) tag is
set to the base function name, discarding the unique qualifier and
linkagename is set to an empty string.







This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Overview
:widths: auto
:class: summarytable

* - :py:obj:`create_kernel_for_parfor <numba_dpex.core.parfors.kernel_builder.create_kernel_for_parfor>`\ (lowerer, parfor_node, typemap, flags, loop_ranges, has_aliases, races, parfor_outputs)
* - :py:obj:`create_kernel_for_parfor <numba_dpex.core.parfors.kernel_builder.create_kernel_for_parfor>`\ (lowerer, parfor_node, typemap, loop_ranges, races, parfor_outputs)
- Creates a numba_dpex.kernel function for a parfor node.
* - :py:obj:`update_sentinel <numba_dpex.core.parfors.kernel_builder.update_sentinel>`\ (kernel_ir, sentinel_name, kernel_body, new_label)
- Searched all the blocks in the IR generated from a kernel template and
Expand All @@ -36,14 +36,14 @@ Overview
Classes
-------

.. py:class:: ParforKernel(name, kernel, signature, kernel_args, kernel_arg_types, queue: dpctl.SyclQueue, local_accessors=None, work_group_size=None)
.. py:class:: ParforKernel(signature, kernel_args, kernel_arg_types, local_accessors=None, work_group_size=None, kernel_module=None)
Functions
---------
.. py:function:: create_kernel_for_parfor(lowerer, parfor_node, typemap, flags, loop_ranges, has_aliases, races, parfor_outputs) -> ParforKernel
.. py:function:: create_kernel_for_parfor(lowerer, parfor_node, typemap, loop_ranges, races, parfor_outputs) -> ParforKernel
Creates a numba_dpex.kernel function for a parfor node.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ Classes

* - :py:obj:`dump_kernel_string <numba_dpex.core.parfors.kernel_templates.kernel_template_iface.KernelTemplateInterface.dump_kernel_string>`\ ()
- :summarylabel:`abc` \-
* - :py:obj:`dump_kernel_ir <numba_dpex.core.parfors.kernel_templates.kernel_template_iface.KernelTemplateInterface.dump_kernel_ir>`\ ()
- :summarylabel:`abc` \-


.. rubric:: Members
Expand All @@ -49,10 +47,6 @@ Classes
:abstractmethod:


.. py:method:: dump_kernel_ir()
:abstractmethod:





Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ Classes

* - :py:obj:`dump_kernel_string <numba_dpex.core.parfors.kernel_templates.range_kernel_template.RangeKernelTemplate.dump_kernel_string>`\ ()
- Helper to print the kernel function string.
* - :py:obj:`dump_kernel_ir <numba_dpex.core.parfors.kernel_templates.range_kernel_template.RangeKernelTemplate.dump_kernel_ir>`\ ()
- Helper to dump the Numba IR for the RangeKernelTemplate.


.. rubric:: Members
Expand All @@ -53,11 +51,6 @@ Classes
Helper to print the kernel function string.


.. py:method:: dump_kernel_ir()
Helper to dump the Numba IR for the RangeKernelTemplate.





Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ Classes

* - :py:obj:`dump_kernel_string <numba_dpex.core.parfors.kernel_templates.reduction_template.TreeReduceIntermediateKernelTemplate.dump_kernel_string>`\ ()
- Helper to print the kernel function string.
* - :py:obj:`dump_kernel_ir <numba_dpex.core.parfors.kernel_templates.reduction_template.TreeReduceIntermediateKernelTemplate.dump_kernel_ir>`\ ()
- Helper to dump the Numba IR for a


.. rubric:: Members
Expand All @@ -57,12 +55,6 @@ Classes
Helper to print the kernel function string.


.. py:method:: dump_kernel_ir()
Helper to dump the Numba IR for a
TreeReduceIntermediateKernelTemplate.




.. py:class:: RemainderReduceIntermediateKernelTemplate(kernel_name, kernel_params, sentinel_name, redvars, parfor_reddict, redvars_dict, typemap, legal_loop_indices, global_size_var_name, global_size_mod_var_name, partial_sum_size_var_name, partial_sum_var_name, final_sum_var_name, reductionKernelVar)
Expand All @@ -83,8 +75,6 @@ Classes

* - :py:obj:`dump_kernel_string <numba_dpex.core.parfors.kernel_templates.reduction_template.RemainderReduceIntermediateKernelTemplate.dump_kernel_string>`\ ()
- Helper to print the kernel function string.
* - :py:obj:`dump_kernel_ir <numba_dpex.core.parfors.kernel_templates.reduction_template.RemainderReduceIntermediateKernelTemplate.dump_kernel_ir>`\ ()
- Helper to dump the Numba IR for the


.. rubric:: Members
Expand All @@ -94,12 +84,6 @@ Classes
Helper to print the kernel function string.


.. py:method:: dump_kernel_ir()
Helper to dump the Numba IR for the
RemainderReduceIntermediateKernelTemplate.





Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ Overview



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

* - :py:obj:`keep_alive_kernels <numba_dpex.core.parfors.parfor_lowerer.keep_alive_kernels>`
- \-


Classes
-------
Expand Down Expand Up @@ -96,12 +88,5 @@ Classes



Attributes
----------
.. py:data:: keep_alive_kernels
:value: []





Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Overview

* - :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
* - :py:obj:`mk_alloc <numba_dpex.core.parfors.parfor_pass.mk_alloc>`\ (typingctx, typemap, calltypes, lhs, size_var, dtype, scope, loc, lhs_typ, \*\*kws)
- generate an array allocation with np.empty() and return list of nodes.



Expand Down Expand Up @@ -93,6 +95,15 @@ Functions
get type of the incoming function from builtin registry


.. py:function:: mk_alloc(typingctx, typemap, calltypes, lhs, size_var, dtype, scope, loc, lhs_typ, **kws)
generate an array allocation with np.empty() and return list of nodes.
size_var can be an int variable or tuple of int variables.
lhs_typ is the type of the array being allocated.

Taken from numba, added kws argument to pass it to __allocate__





Loading

0 comments on commit ec21425

Please sign in to comment.