Skip to content

Commit 5e36182

Browse files
author
github-actions[doc-deploy-bot]
committed
Docs for pull request 2025
1 parent 2d8245a commit 5e36182

File tree

14 files changed

+2009
-19
lines changed

14 files changed

+2009
-19
lines changed

pulls/2025/_modules/dpctl/enum_types.html

Lines changed: 960 additions & 0 deletions
Large diffs are not rendered by default.

pulls/2025/_modules/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,7 @@ <h1>All modules for which code is available</h1>
790790
<li><a href="dpctl/_sycl_platform.html">dpctl._sycl_platform</a></li>
791791
<li><a href="dpctl/_sycl_queue.html">dpctl._sycl_queue</a></li>
792792
<li><a href="dpctl/_sycl_timer.html">dpctl._sycl_timer</a></li>
793+
<li><a href="dpctl/enum_types.html">dpctl.enum_types</a></li>
793794
<li><a href="dpctl/memory/_memory.html">dpctl.memory._memory</a></li>
794795
<li><a href="dpctl/program/_program.html">dpctl.program._program</a></li>
795796
<li><a href="dpctl/tensor/_array_api.html">dpctl.tensor._array_api</a></li>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.. _dpctl_constants:
2+
3+
Constants
4+
=========
5+
6+
The following constants are defined in :py:mod:`dpctl`:
7+
8+
.. currentmodule:: dpctl
9+
10+
.. autodata:: device_type
11+
12+
.. autodata:: backend_type
13+
14+
.. autodata:: event_status_type
15+
16+
.. autodata:: global_mem_cache_type

pulls/2025/_sources/api_reference/dpctl/index.rst.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,20 @@
6262
has_cpu_devices
6363
has_accelerator_devices
6464

65+
.. rubric:: Enums
66+
67+
.. list-table::
68+
:widths: 10 50
69+
70+
* - :py:class:`dpctl.device_type`
71+
- An :class:`enum.Enum` of supported SYCL device types.
72+
* - :py:class:`dpctl.backend_type`
73+
- An :class:`enum.Enum` of supported SYCL backends.
74+
* - :py:class:`dpctl.event_status_type`
75+
- An :class:`enum.Enum` of SYCL event states.
76+
* - :py:class:`dpctl.global_mem_cache_type`
77+
- An :class:`enum.Enum` of global memory cache types for a device.
78+
6579
.. rubric:: Exceptions
6680

6781
.. autosummary::

pulls/2025/_sources/api_reference/dpctl/tensor.constants.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _dpctl_tensor_constants:
22

33
Constants
4-
========================
4+
=========
55

66
The following constants are defined in :py:mod:`dpctl.tensor`:
77

pulls/2025/api_reference/dpctl/constants.html

Lines changed: 964 additions & 0 deletions
Large diffs are not rendered by default.

pulls/2025/api_reference/dpctl/generated/dpctl.SyclPlatform.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ <h1>dpctl.SyclPlatform<a class="headerlink" href="#dpctl-syclplatform" title="Pe
831831
<table class="autosummary longtable docutils align-default">
832832
<tbody>
833833
<tr class="row-odd"><td><p><a class="reference internal" href="generated/dpctl.SyclPlatform.get_devices.html#dpctl.SyclPlatform.get_devices" title="dpctl.SyclPlatform.get_devices"><code class="xref py py-obj docutils literal notranslate"><span class="pre">get_devices</span></code></a>([device_type])</p></td>
834-
<td><p>Returns the list of <a class="reference internal" href="dpctl.SyclDevice.html#dpctl.SyclDevice" title="dpctl.SyclDevice"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.SyclDevice</span></code></a> objects associated with <a class="reference internal" href="#dpctl.SyclPlatform" title="dpctl.SyclPlatform"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.SyclPlatform</span></code></a> instance selected based on the given <code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code>.</p></td>
834+
<td><p>Returns the list of <a class="reference internal" href="dpctl.SyclDevice.html#dpctl.SyclDevice" title="dpctl.SyclDevice"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.SyclDevice</span></code></a> objects associated with <a class="reference internal" href="#dpctl.SyclPlatform" title="dpctl.SyclPlatform"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.SyclPlatform</span></code></a> instance selected based on the given <a class="reference internal" href="../constants.html#dpctl.device_type" title="dpctl.device_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code></a>.</p></td>
835835
</tr>
836836
<tr class="row-even"><td><p><a class="reference internal" href="generated/dpctl.SyclPlatform.print_platform_info.html#dpctl.SyclPlatform.print_platform_info" title="dpctl.SyclPlatform.print_platform_info"><code class="xref py py-obj docutils literal notranslate"><span class="pre">print_platform_info</span></code></a>([verbosity])</p></td>
837837
<td><p>Print information about the SYCL platform.</p></td>

pulls/2025/api_reference/dpctl/generated/dpctl.get_devices.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -793,27 +793,27 @@ <h1>dpctl.get_devices<a class="headerlink" href="#dpctl-get-devices" title="Perm
793793
<dt class="sig sig-object py" id="dpctl.get_devices">
794794
<span class="sig-prename descclassname"><span class="pre">dpctl.</span></span><span class="sig-name descname"><span class="pre">get_devices</span></span><span class="sig-paren">(</span><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">backend_type.all</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">device_type.all</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#dpctl.get_devices" title="Permalink to this definition"></a></dt>
795795
<dd><p>Returns a list of <a class="reference internal" href="dpctl.SyclDevice.html#dpctl.SyclDevice" title="dpctl.SyclDevice"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.SyclDevice</span></code></a> instances selected based on
796-
the given <code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code> and <code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.backend_type</span></code> values.</p>
796+
the given <a class="reference internal" href="../constants.html#dpctl.device_type" title="dpctl.device_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code></a> and <a class="reference internal" href="../constants.html#dpctl.backend_type" title="dpctl.backend_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.backend_type</span></code></a> values.</p>
797797
<p>The function is analogous to <code class="docutils literal notranslate"><span class="pre">sycl::devices::get_devices()</span></code>, but with an
798798
additional functionality that allows filtering SYCL devices based on
799799
<code class="docutils literal notranslate"><span class="pre">backend</span></code> in addition to only <code class="docutils literal notranslate"><span class="pre">device_type</span></code>.</p>
800800
<dl class="field-list simple">
801801
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
802802
<dd class="field-odd"><ul class="simple">
803-
<li><p><strong>backend</strong> (str, <code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.backend_type</span></code>, optional) – A <code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.backend_type</span></code> enum value or a string that
803+
<li><p><strong>backend</strong> (str, <a class="reference internal" href="../constants.html#dpctl.backend_type" title="dpctl.backend_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.backend_type</span></code></a>, optional) – A <a class="reference internal" href="../constants.html#dpctl.backend_type" title="dpctl.backend_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.backend_type</span></code></a> enum value or a string that
804804
specifies a SYCL backend. Currently, accepted values are: “cuda”,
805805
“hip”, “opencl”, “level_zero”, or “all”.
806806
Default: <code class="docutils literal notranslate"><span class="pre">dpctl.backend_type.all</span></code>.</p></li>
807-
<li><p><strong>device_type</strong> (str, <code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code>, optional) – A <code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code> enum value or a string that
807+
<li><p><strong>device_type</strong> (str, <a class="reference internal" href="../constants.html#dpctl.device_type" title="dpctl.device_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code></a>, optional) – A <a class="reference internal" href="../constants.html#dpctl.device_type" title="dpctl.device_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code></a> enum value or a string that
808808
specifies a SYCL device type. Currently, accepted values are:
809809
“gpu”, “cpu”, “accelerator”, or “all”.
810810
Default: <code class="docutils literal notranslate"><span class="pre">dpctl.device_type.all</span></code>.</p></li>
811811
</ul>
812812
</dd>
813813
<dt class="field-even">Returns<span class="colon">:</span></dt>
814814
<dd class="field-even"><p>A list of available <a class="reference internal" href="dpctl.SyclDevice.html#dpctl.SyclDevice" title="dpctl.SyclDevice"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.SyclDevice</span></code></a> instances that
815-
satisfy the provided <code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.backend_type</span></code> and
816-
<code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code> values.</p>
815+
satisfy the provided <a class="reference internal" href="../constants.html#dpctl.backend_type" title="dpctl.backend_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.backend_type</span></code></a> and
816+
<a class="reference internal" href="../constants.html#dpctl.device_type" title="dpctl.device_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code></a> values.</p>
817817
</dd>
818818
<dt class="field-odd">Return type<span class="colon">:</span></dt>
819819
<dd class="field-odd"><p><a class="reference external" href="https://docs.python.org/3/library/stdtypes.html#list" title="(in Python v3.13)">list</a></p>

pulls/2025/api_reference/dpctl/generated/dpctl.get_num_devices.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -793,23 +793,23 @@ <h1>dpctl.get_num_devices<a class="headerlink" href="#dpctl-get-num-devices" tit
793793
<dt class="sig sig-object py" id="dpctl.get_num_devices">
794794
<span class="sig-prename descclassname"><span class="pre">dpctl.</span></span><span class="sig-name descname"><span class="pre">get_num_devices</span></span><span class="sig-paren">(</span><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">backend_type.all</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">device_type.all</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#dpctl.get_num_devices" title="Permalink to this definition"></a></dt>
795795
<dd><p>A helper function to return the number of SYCL devices of a given
796-
<code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code> and <code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.backend_type</span></code>.</p>
796+
<a class="reference internal" href="../constants.html#dpctl.device_type" title="dpctl.device_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code></a> and <a class="reference internal" href="../constants.html#dpctl.backend_type" title="dpctl.backend_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.backend_type</span></code></a>.</p>
797797
<dl class="field-list simple">
798798
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
799799
<dd class="field-odd"><ul class="simple">
800-
<li><p><strong>backend</strong> (str, <code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.backend_type</span></code>, optional) – A <code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.backend_type</span></code> enum value or a string that
800+
<li><p><strong>backend</strong> (str, <a class="reference internal" href="../constants.html#dpctl.backend_type" title="dpctl.backend_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.backend_type</span></code></a>, optional) – A <a class="reference internal" href="../constants.html#dpctl.backend_type" title="dpctl.backend_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.backend_type</span></code></a> enum value or a string that
801801
specifies a SYCL backend. Currently, accepted values are: “cuda”,
802802
“hip”, “opencl”, “level_zero”, or “all”.
803803
Default: <code class="docutils literal notranslate"><span class="pre">dpctl.backend_type.all</span></code>.</p></li>
804-
<li><p><strong>device_type</strong> (str, <code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code>, optional) – A <code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code> enum value or a string that
804+
<li><p><strong>device_type</strong> (str, <a class="reference internal" href="../constants.html#dpctl.device_type" title="dpctl.device_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code></a>, optional) – A <a class="reference internal" href="../constants.html#dpctl.device_type" title="dpctl.device_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code></a> enum value or a string that
805805
specifies a SYCL device type. Currently, accepted values are:
806806
“gpu”, “cpu”, “accelerator”, or “all”.
807807
Default: <code class="docutils literal notranslate"><span class="pre">dpctl.device_type.all</span></code>.</p></li>
808808
</ul>
809809
</dd>
810810
<dt class="field-even">Returns<span class="colon">:</span></dt>
811811
<dd class="field-even"><p>The number of available SYCL devices that satisfy the provided
812-
<code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.backend_type</span></code> and <code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code>
812+
<a class="reference internal" href="../constants.html#dpctl.backend_type" title="dpctl.backend_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.backend_type</span></code></a> and <a class="reference internal" href="../constants.html#dpctl.device_type" title="dpctl.device_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code></a>
813813
values.</p>
814814
</dd>
815815
<dt class="field-odd">Return type<span class="colon">:</span></dt>

pulls/2025/api_reference/dpctl/generated/generated/dpctl.SyclPlatform.get_devices.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -794,10 +794,10 @@ <h1>dpctl.SyclPlatform.get_devices<a class="headerlink" href="#dpctl-syclplatfor
794794
<span class="sig-prename descclassname"><span class="pre">SyclPlatform.</span></span><span class="sig-name descname"><span class="pre">get_devices</span></span><span class="sig-paren">(</span><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">device_type.all</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#dpctl.SyclPlatform.get_devices" title="Permalink to this definition"></a></dt>
795795
<dd><p>Returns the list of <a class="reference internal" href="../dpctl.SyclDevice.html#dpctl.SyclDevice" title="dpctl.SyclDevice"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.SyclDevice</span></code></a> objects associated with
796796
<a class="reference internal" href="../dpctl.SyclPlatform.html#dpctl.SyclPlatform" title="dpctl.SyclPlatform"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.SyclPlatform</span></code></a> instance selected based on
797-
the given <code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code>.</p>
797+
the given <a class="reference internal" href="../../constants.html#dpctl.device_type" title="dpctl.device_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code></a>.</p>
798798
<dl class="field-list simple">
799799
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
800-
<dd class="field-odd"><p><strong>device_type</strong> (str, <code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code>, optional) – A <code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code> enum value or a string that
800+
<dd class="field-odd"><p><strong>device_type</strong> (str, <a class="reference internal" href="../../constants.html#dpctl.device_type" title="dpctl.device_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code></a>, optional) – A <a class="reference internal" href="../../constants.html#dpctl.device_type" title="dpctl.device_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code></a> enum value or a string that
801801
specifies a SYCL device type. Currently, accepted values are:
802802
“gpu”, “cpu”, “accelerator”, or “all”, and their equivalent
803803
<code class="docutils literal notranslate"><span class="pre">dpctl.device_type</span></code> enumerators.
@@ -812,7 +812,7 @@ <h1>dpctl.SyclPlatform.get_devices<a class="headerlink" href="#dpctl-syclplatfor
812812
</dd>
813813
<dt class="field-even">Raises<span class="colon">:</span></dt>
814814
<dd class="field-even"><ul class="simple">
815-
<li><p><a class="reference external" href="https://docs.python.org/3/library/exceptions.html#TypeError" title="(in Python v3.13)"><strong>TypeError</strong></a> – If <cite>device_type</cite> is not a string or <code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code>
815+
<li><p><a class="reference external" href="https://docs.python.org/3/library/exceptions.html#TypeError" title="(in Python v3.13)"><strong>TypeError</strong></a> – If <cite>device_type</cite> is not a string or <a class="reference internal" href="../../constants.html#dpctl.device_type" title="dpctl.device_type"><code class="xref py py-class docutils literal notranslate"><span class="pre">dpctl.device_type</span></code></a>
816816
enum.</p></li>
817817
<li><p><a class="reference external" href="https://docs.python.org/3/library/exceptions.html#ValueError" title="(in Python v3.13)"><strong>ValueError</strong></a> – If the <code class="docutils literal notranslate"><span class="pre">DPCTLPlatform_GetDevices</span></code> call returned
818818
<code class="docutils literal notranslate"><span class="pre">NULL</span></code> instead of a <code class="docutils literal notranslate"><span class="pre">DPCTLDeviceVectorRef</span></code> object.</p></li>

0 commit comments

Comments
 (0)