Skip to content

Commit fda82fe

Browse files
Merge pull request #912 from adarshyoga/kmeans_perf_improvements
Dispatcher/caching rewrite to address performance regression ae994cd
1 parent dc72de9 commit fda82fe

File tree

134 files changed

+378
-168
lines changed

Some content is hidden

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

134 files changed

+378
-168
lines changed

dev/.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: ea19d5a113beae1b35720056acc4972f
3+
config: d46c0d496d9e69652683c978c2dd14e4
44
tags: 645f666f9bcd5a90fca523b33c5a78b7

dev/CoreFeatures.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />
55

66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>Code-generation based on a device &mdash; numba-dpex 0.20.0dev2+28.g7b237f99 documentation</title>
7+
<title>Code-generation based on a device &mdash; numba-dpex 0.20.0dev2+33.gae994cda documentation</title>
88
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
99
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
1010
<!--[if lt IE 9]>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
numba\_dpex.core.utils.caching\_utils module
2+
============================================
3+
4+
.. automodule:: numba_dpex.core.utils.caching_utils
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

dev/_sources/apidoc/numba_dpex.core.utils.rst.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Submodules
77
.. toctree::
88
:maxdepth: 4
99

10+
numba_dpex.core.utils.caching_utils
1011
numba_dpex.core.utils.suai_helper
1112

1213
Module contents

dev/_static/documentation_options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var DOCUMENTATION_OPTIONS = {
22
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
3-
VERSION: '0.20.0dev2+28.g7b237f99',
3+
VERSION: '0.20.0dev2+33.gae994cda',
44
LANGUAGE: 'en',
55
COLLAPSE_INDEX: false,
66
BUILDER: 'html',

dev/apidoc/modules.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />
55

66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>numba_dpex &mdash; numba-dpex 0.20.0dev2+28.g7b237f99 documentation</title>
7+
<title>numba_dpex &mdash; numba-dpex 0.20.0dev2+33.gae994cda documentation</title>
88
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
99
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
1010
<!--[if lt IE 9]>

dev/apidoc/numba_dpex.config.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />
55

66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>numba_dpex.config module &mdash; numba-dpex 0.20.0dev2+28.g7b237f99 documentation</title>
7+
<title>numba_dpex.config module &mdash; numba-dpex 0.20.0dev2+33.gae994cda documentation</title>
88
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
99
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
1010
<!--[if lt IE 9]>

dev/apidoc/numba_dpex.core.caching.html

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />
55

66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>numba_dpex.core.caching module &mdash; numba-dpex 0.20.0dev2+28.g7b237f99 documentation</title>
7+
<title>numba_dpex.core.caching module &mdash; numba-dpex 0.20.0dev2+33.gae994cda documentation</title>
88
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
99
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
1010
<!--[if lt IE 9]>
@@ -267,39 +267,6 @@
267267

268268
</dd></dl>
269269

270-
<dl class="py function">
271-
<dt class="sig sig-object py" id="numba_dpex.core.caching.build_key">
272-
<span class="sig-prename descclassname"><span class="pre">numba_dpex.core.caching.</span></span><span class="sig-name descname"><span class="pre">build_key</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">argtypes</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">pyfunc</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">codegen</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">backend</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="n"><span class="pre">device_type</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="n"><span class="pre">exec_queue</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#numba_dpex.core.caching.build_key" title="Permalink to this definition"></a></dt>
273-
<dd><p>Constructs a key from python function, context, backend, the device
274-
type and execution queue.</p>
275-
<p>Compute index key for the given argument types and codegen. It includes a
276-
description of the OS, target architecture and hashes of the bytecode for
277-
the function and, if the function has a __closure__, a hash of the
278-
cell_contents.type</p>
279-
<dl>
280-
<dt>Args:</dt><dd><p>argtypes : A tuple of numba types corresponding to the arguments to the
281-
compiled function.
282-
pyfunc : The Python function that is to be compiled and cached.
283-
codegen (numba.core.codegen.Codegen):</p>
284-
<blockquote>
285-
<div><p>The codegen object found from the target context.</p>
286-
</div></blockquote>
287-
<dl class="simple">
288-
<dt>backend (enum, optional): A ‘backend_type’ enum.</dt><dd><p>Defaults to None.</p>
289-
</dd>
290-
<dt>device_type (enum, optional): A ‘device_type’ enum.</dt><dd><p>Defaults to None.</p>
291-
</dd>
292-
</dl>
293-
<p>exec_queue (dpctl._sycl_queue.SyclQueue’, optional): A SYCL queue object.</p>
294-
</dd>
295-
<dt>Returns:</dt><dd><dl class="simple">
296-
<dt>tuple: A tuple of return type, argtpes, magic_tuple of codegen</dt><dd><p>and another tuple of hashcodes from bytecode and cell_contents.</p>
297-
</dd>
298-
</dl>
299-
</dd>
300-
</dl>
301-
</dd></dl>
302-
303270
</section>
304271

305272

dev/apidoc/numba_dpex.core.codegen.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />
55

66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>numba_dpex.core.codegen module &mdash; numba-dpex 0.20.0dev2+28.g7b237f99 documentation</title>
7+
<title>numba_dpex.core.codegen module &mdash; numba-dpex 0.20.0dev2+33.gae994cda documentation</title>
88
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
99
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
1010
<!--[if lt IE 9]>

dev/apidoc/numba_dpex.core.compiler.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" />
55

66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7-
<title>numba_dpex.core.compiler module &mdash; numba-dpex 0.20.0dev2+28.g7b237f99 documentation</title>
7+
<title>numba_dpex.core.compiler module &mdash; numba-dpex 0.20.0dev2+33.gae994cda documentation</title>
88
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
99
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
1010
<!--[if lt IE 9]>

0 commit comments

Comments
 (0)