Skip to content

Commit 757e660

Browse files
authored
[CI][AMD] Map build dependency dir from host into docker (triton-lang#7543)
This makes sure that we can indeed use the downloaded build dependency cache during build process to avoid downloads.
1 parent 8bf8f42 commit 757e660

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/integration-tests-amd.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ jobs:
2929
CCACHE_COMPRESS: "true"
3030
container:
3131
image: ${{ matrix.image }}
32-
options: --device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video --user root
32+
# Cache save/restore is on the host machine at directory /home/runner/.triton, while in the docker
33+
# container expect it at /github/home/.triton. So map here to make sure visible in docker.
34+
options: >-
35+
--device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video --user root
36+
--volume /home/runner/.triton:/github/home/.triton
3337
steps:
3438
- name: Checkout
3539
uses: actions/checkout@v4
@@ -52,7 +56,6 @@ jobs:
5256
echo "llvm=$(cat $llvm_file | cut -c 1-8)" >> $GITHUB_OUTPUT
5357
echo "nvidia=$(sha256sum $nvidia_file | cut -d ' ' -f 1)" >> $GITHUB_OUTPUT
5458
echo "json=$(cat $json_file)" >> $GITHUB_OUTPUT
55-
echo "datetime=$(date -u -Iseconds)" >> $GITHUB_OUTPUT
5659
shell: bash
5760
- name: Cache build dependencies
5861
uses: actions/cache@v4
@@ -160,5 +163,5 @@ jobs:
160163
# Always cleanup the worker, even if builds or tests failed
161164
if: always()
162165
run: |
163-
rm -rf ~/.triton
166+
rm -rf ~/.triton/cache
164167
rm -rf ~/.ccache

0 commit comments

Comments
 (0)