Files
triton/_sources/getting-started/installation.rst.txt

56 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-09-10 22:58:16 +00:00
==============
Installation
==============
---------------------
Binary Distributions
---------------------
You can install the latest stable release of Triton from pip:
.. code-block:: bash
pip install triton
Binary wheels are available for CPython 3.6-3.9 and PyPy 3.6-3.7.
And the latest nightly release:
.. code-block:: bash
pip install -U --pre triton
--------------
From Source
--------------
+++++++++++++++
Python Package
+++++++++++++++
You can install the Python package from source by running the following commands:
.. code-block:: bash
git clone https://github.com/openai/triton.git;
cd triton/python;
pip install cmake; # build time dependency
pip install -e .
Note that, if llvm-11 is not present on your system, the setup.py script will download the official LLVM11 static libraries link against that.
You can then test your installation by running the unit tests:
.. code-block:: bash
2022-02-07 03:25:11 +00:00
pip install -e '.[tests]'
2021-10-01 00:30:50 +00:00
pytest -vs test/unit/
2021-09-10 22:58:16 +00:00
and the benchmarks
.. code-block:: bash
cd bench/
2021-09-14 00:21:56 +00:00
python -m run --with-plots --result-dir /tmp/triton-bench