-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installation for Triton #1410
base: main
Are you sure you want to change the base?
Installation for Triton #1410
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
compilers: | ||
triton: | ||
type: tarballs | ||
dir: triton-{name} | ||
depends: | ||
- tools/cmake 3.29.2 | ||
- tools/ninja 1.11.1 | ||
- tools/wheel 0.43.0 | ||
- tools/pybind11 2.13.5 | ||
- compilers/c++/clang 18.1.0 | ||
- libraries/triton/triton-shared main | ||
compression: gz | ||
check_exe: python3 venv/lib/python3.12/site-packages/triton/tools/compile.py -h | ||
url: https://github.com/triton-lang/triton/archive/refs/tags/v{name}.tar.gz | ||
targets: | ||
- 2.1.0 | ||
after_stage_script: | ||
- cd triton-{name} | ||
- python3 -m venv venv | ||
- source venv/bin/activate | ||
- cd python | ||
- TRITON_BUILD_WITH_CLANG_LLD=true TRITON_PLUGIN_DIRS=/opt/compiler-explorer/triton-shared-main pip install -e . | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will build on our "admin" installer node, which isn't a great place for this to go. In other languages we try and build a "hermetic", relocatable tarball that we use as the source of truth. From (bitter) experience in my day job, python and its various virtual environments aren't great at this kind of thing. Also hardcoding |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably the culprit here. We don't have a "real" python3 in our environment where the compilers run and/or are installed. As you know python has a rich history of complex package management systems and we don't currently well support compilres that are written in python.
The computer that creates the
venv
will not be the same one that executes the compilers, so a lot of system dependencies could change.Unfortunately we don't have a great solution for this currently.
If you have Discord you could dro pinto our discord server for a chat about this, we're open to ideas. But python's installation system is a little hostile to our current setup as it stands.