Skip to content

Commit 54931f0

Browse files
author
github-actions[doc-deploy-bot]
committed
Latest docs.
1 parent cb8de14 commit 54931f0

File tree

4 files changed

+23
-6
lines changed

4 files changed

+23
-6
lines changed

master/_sources/beginners_guides/installation.rst.txt

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,11 +197,24 @@ which requires specifying a compute architecture string:
197197

198198
.. code-block:: bash
199199
200-
python scripts/build_locally.py --verbose --cmake-opts="-DDPCTL_TARGET_HIP=gfx1030"
200+
python scripts/build_locally.py --verbose --cmake-opts="-DDPCTL_TARGET_HIP=<arch>"
201201
202-
Note that the `oneAPI for AMD GPUs` plugin requires the architecture be specified and only
202+
Note that the `oneAPI for AMD GPUs` plugin requires the architecture be specified and only
203203
one architecture can be specified at a time.
204204

205+
To determine the architecture code (``<arch>``) for your AMD GPU, run:
206+
207+
.. code-block:: bash
208+
rocminfo | grep 'Name: *gfx.*'
209+
210+
This will print names like ``gfx90a``, ``gfx1030``, etc.
211+
You can then use one of them as the argument to ``-DDPCTL_TARGET_HIP``.
212+
213+
For example:
214+
215+
.. code-block:: bash
216+
python scripts/build_locally.py --verbose --cmake-opts="-DDPCTL_TARGET_HIP=gfx1030"
217+
205218
Multi-target build
206219
~~~~~~~~~~~~~~~~~~
207220

master/beginners_guides/installation.html

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,7 @@ <h2>Installation using pip<a class="headerlink" href="#installation-using-pip" t
867867
<section id="installation-via-intel-r-distribution-for-python">
868868
<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>
869869
<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
870-
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.19.0dev0+18.gcedd0d171f9)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">dpnp</span></code></a>
870+
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.19.0dev0+19.g278cf429f61)"><code class="xref py py-mod docutils literal notranslate"><span class="pre">dpnp</span></code></a>
871871
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>
872872
<p>Once the installed environment is activated, <code class="docutils literal notranslate"><span class="pre">dpctl</span></code> should be ready to use.</p>
873873
</section>
@@ -959,11 +959,15 @@ <h4>CUDA build<a class="headerlink" href="#cuda-build" title="Permalink to this
959959
<h4>AMD build<a class="headerlink" href="#amd-build" title="Permalink to this heading"></a></h4>
960960
<p><code class="docutils literal notranslate"><span class="pre">dpctl</span></code> can be built for AMD devices using the <code class="docutils literal notranslate"><span class="pre">DPCTL_TARGET_HIP</span></code> CMake option,
961961
which requires specifying a compute architecture string:</p>
962-
<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>
962+
<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=&lt;arch&gt;&quot;</span>
963963
</pre></div>
964964
</div>
965-
<p>Note that the <cite>oneAPI for AMD GPUs</cite> plugin requires the architecture be specified and only
965+
<p>Note that the <cite>oneAPI for AMD GPUs</cite> plugin requires the architecture be specified and only
966966
one architecture can be specified at a time.</p>
967+
<p>To determine the architecture code (<code class="docutils literal notranslate"><span class="pre">&lt;arch&gt;</span></code>) for your AMD GPU, run:</p>
968+
<p>This will print names like <code class="docutils literal notranslate"><span class="pre">gfx90a</span></code>, <code class="docutils literal notranslate"><span class="pre">gfx1030</span></code>, etc.
969+
You can then use one of them as the argument to <code class="docutils literal notranslate"><span class="pre">-DDPCTL_TARGET_HIP</span></code>.</p>
970+
<p>For example:</p>
967971
</section>
968972
<section id="multi-target-build">
969973
<h4>Multi-target build<a class="headerlink" href="#multi-target-build" title="Permalink to this heading"></a></h4>

master/objects.inv

0 Bytes
Binary file not shown.

master/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)