Skip to content

Commit 2de25b7

Browse files
author
github-actions[doc-deploy-bot]
committed
Docs for pull request 1731
1 parent 0017a41 commit 2de25b7

File tree

6 files changed

+40
-6
lines changed

6 files changed

+40
-6
lines changed

pulls/1731/_sources/beginners_guides/installation.rst.txt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,28 @@ The following plugins from CodePlay are supported:
158158
.. _codeplay_nv_plugin: https://developer.codeplay.com/products/oneapi/nvidia/
159159
.. _codeplay_amd_plugin: https://developer.codeplay.com/products/oneapi/amd/
160160

161-
Build ``dpctl`` as follows:
161+
``dpctl`` can be built for CUDA devices as follows:
162162

163163
.. code-block:: bash
164164
165165
python scripts/build_locally.py --verbose --cmake-opts="-DDPCTL_TARGET_CUDA=ON"
166166
167+
And for AMD devices
168+
169+
.. code-block:: bash
170+
171+
python scripts/build_locally.py --verbose --cmake-opts="-DDPCTL_TARGET_HIP=gfx1030"
172+
173+
Note that the `oneAPI for AMD GPUs <codeplay_amd_plugin_>` plugin requires the architecture
174+
be specified and only one architecture can be specified at a time.
175+
176+
It is, however, possible to build for Intel devices, CUDA devices, and an AMD device
177+
architecture all at once:
178+
179+
.. code-block:: bash
180+
181+
python scripts/build_locally.py --verbose --cmake-opts="-DDPCTL_TARGET_CUDA=ON \
182+
-DDPCTL_TARGET_HIP=gfx1030"
167183
168184
Running Examples and Tests
169185
==========================

pulls/1731/_sources/beginners_guides/managing_devices.rst.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ of valid settings are:
123123
* - ``cuda:*``
124124
- All devices only from CUDA backend are available
125125
126+
* - ``hip:*``
127+
- All devices only from HIP backend are available
128+
126129
* - ``level_zero:0,1``
127130
- Two specific devices from Level-Zero backend are available
128131

pulls/1731/beginners_guides/installation.html

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ <h2>Installation using pip<a class="headerlink" href="#installation-using-pip" t
881881
<section id="installation-via-intel-r-distribution-for-python">
882882
<h2>Installation via Intel(R) Distribution for Python<a class="headerlink" href="#installation-via-intel-r-distribution-for-python" title="Permalink to this heading"></a></h2>
883883
<p><a class="reference external" href="https://www.intel.com/content/www/us/en/developer/tools/oneapi/distribution-for-python.html">Intel(R) Distribution for Python*</a> is distributed as a conda-based installer
884-
and includes <a class="reference internal" href="../api_reference/dpctl/index.html#module-dpctl" title="dpctl"><code class="xref py py-mod docutils literal notranslate"><span class="pre">dpctl</span></code></a> along with its dependencies and sister projects <a class="reference external" href="https://intelpython.github.io/dpnp/overview.html#module-dpnp" title="(in Data Parallel Extension for NumPy v0.17.0dev2+12.gffd3829f601)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">dpnp</span></code></a>
884+
and includes <a class="reference internal" href="../api_reference/dpctl/index.html#module-dpctl" title="dpctl"><code class="xref py py-mod docutils literal notranslate"><span class="pre">dpctl</span></code></a> along with its dependencies and sister projects <a class="reference external" href="https://intelpython.github.io/dpnp/overview.html#module-dpnp" title="(in Data Parallel Extension for NumPy v0.17.0dev2+14.g1c375af39b0)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">dpnp</span></code></a>
885885
and <a class="reference external" href="https://intelpython.github.io/numba-dpex/latest/index.html#module-numba_dpex" title="(in numba-dpex)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">numba_dpex</span></code></a>.</p>
886886
<p>Once the installed environment is activated, <code class="docutils literal notranslate"><span class="pre">dpctl</span></code> should be ready to use.</p>
887887
</section>
@@ -946,10 +946,22 @@ <h3>Building for custom SYCL targets<a class="headerlink" href="#building-for-cu
946946
<li><p><a class="reference external" href="https://developer.codeplay.com/products/oneapi/amd/">oneAPI for AMD GPUs</a></p></li>
947947
</ul>
948948
</div></blockquote>
949-
<p>Build <code class="docutils literal notranslate"><span class="pre">dpctl</span></code> as follows:</p>
949+
<p><code class="docutils literal notranslate"><span class="pre">dpctl</span></code> can be built for CUDA devices as follows:</p>
950950
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>python<span class="w"> </span>scripts/build_locally.py<span class="w"> </span>--verbose<span class="w"> </span>--cmake-opts<span class="o">=</span><span class="s2">&quot;-DDPCTL_TARGET_CUDA=ON&quot;</span>
951951
</pre></div>
952952
</div>
953+
<p>And for AMD devices</p>
954+
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>python<span class="w"> </span>scripts/build_locally.py<span class="w"> </span>--verbose<span class="w"> </span>--cmake-opts<span class="o">=</span><span class="s2">&quot;-DDPCTL_TARGET_HIP=gfx1030&quot;</span>
955+
</pre></div>
956+
</div>
957+
<p>Note that the <cite>oneAPI for AMD GPUs &lt;codeplay_amd_plugin_&gt;</cite> plugin requires the architecture
958+
be specified and only one architecture can be specified at a time.</p>
959+
<p>It is, however, possible to build for Intel devices, CUDA devices, and an AMD device
960+
architecture all at once:</p>
961+
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>python<span class="w"> </span>scripts/build_locally.py<span class="w"> </span>--verbose<span class="w"> </span>--cmake-opts<span class="o">=</span><span class="s2">&quot;-DDPCTL_TARGET_CUDA=ON \</span>
962+
<span class="s2">-DDPCTL_TARGET_HIP=gfx1030&quot;</span>
963+
</pre></div>
964+
</div>
953965
</section>
954966
</section>
955967
<section id="running-examples-and-tests">

pulls/1731/beginners_guides/managing_devices.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -928,10 +928,13 @@ <h3>Listing devices programmatically<a class="headerlink" href="#listing-devices
928928
<tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">cuda:*</span></code></p></td>
929929
<td><p>All devices only from CUDA backend are available</p></td>
930930
</tr>
931-
<tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">level_zero:0,1</span></code></p></td>
931+
<tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">hip:*</span></code></p></td>
932+
<td><p>All devices only from HIP backend are available</p></td>
933+
</tr>
934+
<tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">level_zero:0,1</span></code></p></td>
932935
<td><p>Two specific devices from Level-Zero backend are available</p></td>
933936
</tr>
934-
<tr class="row-odd"><td><p><code class="docutils literal notranslate"><span class="pre">level_zero:gpu;cuda:gpu;opencl:cpu</span></code></p></td>
937+
<tr class="row-even"><td><p><code class="docutils literal notranslate"><span class="pre">level_zero:gpu;cuda:gpu;opencl:cpu</span></code></p></td>
935938
<td><p>Level-Zero GPU devices, CUDA GPU devices, and OpenCL CPU devices are available</p></td>
936939
</tr>
937940
</tbody>

pulls/1731/objects.inv

0 Bytes
Binary file not shown.

pulls/1731/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)