Skip to content

Commit d98ce6a

Browse files
Deploy: 37883ed
1 parent 75f7e3a commit d98ce6a

3 files changed

Lines changed: 19 additions & 17 deletions

File tree

‎_sources/maintenance/index.rst.txt‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,26 @@ clone it:
1313
git clone https://github.com/<fork-org>/mkl_random.git
1414
1515
16-
A working compiler is needed build :mod:`mkl_random`.
17-
Both Gnu :code:`g++` and Intel LLVM :code:`icpx` are supported.
16+
A working compiler is needed to build :mod:`mkl_random`.
17+
Gnu :code:`g++`, standard :code:`clang++`, and Intel LLVM :code:`icpx` are supported.
1818

1919
Make sure to install Python packages required to build :mod:`mkl_random`:
2020

2121
* :mod:`python`
2222
* :mod:`numpy`
2323
* :mod:`cython`
24-
* :mod:`setuptools`
24+
* :mod:`meson-python`
25+
* :mod:`ninja`
26+
* :mod:`cmake`
27+
* :mod:`mkl-devel`
2528

26-
You would also need Intel(R) MKL library and its headers. Set :code:`MKLROOT` environment
27-
variable so that :code:`${MKLROOT}/include/mkl.h` and :code:`${MKLROOT}/lib/libmkl_rt.so`
28-
can be found.
29+
The Intel(R) MKL library and its headers are provided by the :mod:`mkl-devel`
30+
package and located through CMake, so no environment variable needs to be set.
2931

3032
.. code-block:: bash
3133
:caption: Building mkl_random
3234
33-
$ export MKLROOT=</path/to/mkl>
34-
python -m pip install .
35+
python -m pip install . --no-build-isolation --no-deps
3536
3637
To run test suite, install :mod:`pytest`, and run
3738

‎maintenance/index.html‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -260,22 +260,23 @@ <h1>Contributing<a class="headerlink" href="#contributing" title="Link to this h
260260
</pre></div>
261261
</div>
262262
</div>
263-
<p>A working compiler is needed build <code class="xref py py-mod docutils literal notranslate"><span class="pre">mkl_random</span></code>.
264-
Both Gnu <code class="code docutils literal notranslate"><span class="pre">g++</span></code> and Intel LLVM <code class="code docutils literal notranslate"><span class="pre">icpx</span></code> are supported.</p>
263+
<p>A working compiler is needed to build <code class="xref py py-mod docutils literal notranslate"><span class="pre">mkl_random</span></code>.
264+
Gnu <code class="code docutils literal notranslate"><span class="pre">g++</span></code>, standard <code class="code docutils literal notranslate"><span class="pre">clang++</span></code>, and Intel LLVM <code class="code docutils literal notranslate"><span class="pre">icpx</span></code> are supported.</p>
265265
<p>Make sure to install Python packages required to build <code class="xref py py-mod docutils literal notranslate"><span class="pre">mkl_random</span></code>:</p>
266266
<ul class="simple">
267267
<li><p><code class="xref py py-mod docutils literal notranslate"><span class="pre">python</span></code></p></li>
268268
<li><p><code class="xref py py-mod docutils literal notranslate"><span class="pre">numpy</span></code></p></li>
269269
<li><p><code class="xref py py-mod docutils literal notranslate"><span class="pre">cython</span></code></p></li>
270-
<li><p><code class="xref py py-mod docutils literal notranslate"><span class="pre">setuptools</span></code></p></li>
270+
<li><p><code class="xref py py-mod docutils literal notranslate"><span class="pre">meson-python</span></code></p></li>
271+
<li><p><code class="xref py py-mod docutils literal notranslate"><span class="pre">ninja</span></code></p></li>
272+
<li><p><code class="xref py py-mod docutils literal notranslate"><span class="pre">cmake</span></code></p></li>
273+
<li><p><code class="xref py py-mod docutils literal notranslate"><span class="pre">mkl-devel</span></code></p></li>
271274
</ul>
272-
<p>You would also need Intel(R) MKL library and its headers. Set <code class="code docutils literal notranslate"><span class="pre">MKLROOT</span></code> environment
273-
variable so that <code class="code docutils literal notranslate"><span class="pre">${MKLROOT}/include/mkl.h</span></code> and <code class="code docutils literal notranslate"><span class="pre">${MKLROOT}/lib/libmkl_rt.so</span></code>
274-
can be found.</p>
275+
<p>The Intel(R) MKL library and its headers are provided by the <code class="xref py py-mod docutils literal notranslate"><span class="pre">mkl-devel</span></code>
276+
package and located through CMake, so no environment variable needs to be set.</p>
275277
<div class="literal-block-wrapper docutils container" id="id2">
276278
<div class="code-block-caption"><span class="caption-text">Building mkl_random</span><a class="headerlink" href="#id2" title="Link to this code"></a></div>
277-
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span>$<span class="w"> </span><span class="nb">export</span><span class="w"> </span><span class="nv">MKLROOT</span><span class="o">=</span>&lt;/path/to/mkl&gt;
278-
<span class="w"> </span>python<span class="w"> </span>-m<span class="w"> </span>pip<span class="w"> </span>install<span class="w"> </span>.
279+
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="w"> </span>python<span class="w"> </span>-m<span class="w"> </span>pip<span class="w"> </span>install<span class="w"> </span>.<span class="w"> </span>--no-build-isolation<span class="w"> </span>--no-deps
279280
</pre></div>
280281
</div>
281282
</div>

0 commit comments

Comments
 (0)