-
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
23 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
20 changes: 20 additions & 0 deletions
20
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,20 @@ | ||
#!/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 | ||
|
||
# Deactivate virtual environment | ||
deactivate | ||
{% endif %} |