You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed the install commands on [the
docs](https://triton-lang.org/main/getting-started/installation.html#python-package)
are outdated (executing them as-is gives `triton/python does not appear
to be a Python project: neither 'setup.py' nor 'pyproject.toml'
found.`).
This PR updates those instructions to match those currently in the
readme, specifically:
- Install from `pip install -e python` to `pip install -e .`
- Wheels from `CPython 3.8-3.12 and PyPy 3.8-3.9.` to `CPython
3.9-3.13.` (match readme)
- Removes the nightly installation instruction
- Tests to the new `make dev-install; make test; make test-nogpu` setup
<!---
The core Triton is a small number of people, and we receive many PRs
(thank
you!). To help us review your code more quickly, **if you are a new
contributor (less than 3 PRs merged) we ask that you complete the
following
tasks and include the filled-out checklist in your PR description.**
Complete the following tasks before sending your PR, and replace `[ ]`
with
`[x]` to indicate you have done them.
-->
# New contributor declaration
- [x] I am not making a trivial change, such as fixing a typo in a
comment.
- [x] I have written a PR description following these
[rules](https://cbea.ms/git-commit/#why-not-how).
- [x] I have run `pre-commit run --from-ref origin/main --to-ref HEAD`.
- Select one of the following.
- [ ] I have added tests.
- `/test` for `lit` tests
- `/unittest` for C++ tests
- `/python/test` for end-to-end tests
- [x] This PR does not need a test because `it just fixes outdated
installation instructions in the docs`.
- Select one of the following.
- [x] I have not added any `lit` tests.
- [ ] The `lit` tests I have added follow these [best
practices](https://mlir.llvm.org/getting_started/TestingGuide/#filecheck-best-practices),
including the "tests should be minimal" section. (Usually running Python
code
and using the instructions it generates is not minimal.)
Note that, if llvm is not present on your system, the setup.py script will download the official LLVM static libraries and link against that.
44
38
45
39
For building with a custom LLVM, review the `Building with a custom LLVM <https://github.com/triton-lang/triton?tab=readme-ov-file#building-with-a-custom-llvm>`_ section on Github.
46
40
47
-
You can then test your installation by running the unit tests:
41
+
You can then test your installation by running the tests:
48
42
49
43
.. code-block:: bash
50
44
51
-
pip install -e '.[tests]'
52
-
pytest -vs test/unit/
45
+
# One-time setup
46
+
make dev-install
53
47
54
-
and the benchmarks
55
-
56
-
.. code-block:: bash
48
+
# To run all tests (requires a GPU)
49
+
make test
57
50
58
-
cd bench
59
-
python -m run --with-plots --result-dir /tmp/triton-bench
0 commit comments