-
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
22 additions
and
6 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
airootfs/root/customize_airootfs/scripts/0000-transient-package.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,5 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
# install transient-package | ||
pipx install transient-package |
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
17 changes: 17 additions & 0 deletions
17
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,17 @@ | ||
#!/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 | ||
# Activate virtual environment | ||
source "$dir/../../../../bin/activate" | ||
|
||
# Replace triton | ||
transient-package install \ | ||
--source triton \ | ||
--target triton-pascal | ||
{% endif %} |