-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[misc] Use transient-package for triton installation
- Loading branch information
Showing
3 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
airootfs/root/customize_airootfs/scripts/2000-replace-triton.sh.jinja2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
{% if platform == "cuda" %} | ||
# use repo with patched packages | ||
export PIP_EXTRA_INDEX_URL="https://sasha0552.github.io/pascal-pkgs-ci/" | ||
|
||
# Iterate over all virtual environments with triton | ||
for dir in $(find /home/tori -type d -wholename "*/site-packages/triton"); do | ||
# Replace triton | ||
transient-package install \ | ||
--interpreter "$dir/../../../../bin/python" \ | ||
--source triton \ | ||
--target triton-pascal | ||
{% endif %} |