|
4 | 4 | <meta charset="utf-8" /><meta name="generator" content="Docutils 0.18.1: http://docutils.sourceforge.net/" /> |
5 | 5 |
|
6 | 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
7 | | - <title>numba_dpex.core.caching module — numba-dpex 0.20.0dev2+28.g7b237f99 documentation</title> |
| 7 | + <title>numba_dpex.core.caching module — numba-dpex 0.20.0dev2+33.gae994cda documentation</title> |
8 | 8 | <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> |
9 | 9 | <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" /> |
10 | 10 | <!--[if lt IE 9]> |
|
267 | 267 |
|
268 | 268 | </dd></dl> |
269 | 269 |
|
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 | | - |
303 | 270 | </section> |
304 | 271 |
|
305 | 272 |
|
|
0 commit comments