Skip to content

Commit 8ffcc74

Browse files
committed
Pass environement variables for caching torch compiles
1 parent 74646c5 commit 8ffcc74

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

‎.github/workflows/test_and_deploy.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,10 @@ jobs:
4545
4646
# this runs the platform-specific tests declared in tox.ini
4747
- name: Test with tox
48-
run: python -m tox
4948
env:
5049
PLATFORM: ${{ matrix.platform }}
50+
TORCHINDUCTOR_CACHE_DIR: ${{ runner.temp }}/torchinductor
51+
run: python -m tox
5152

5253
- name: Upload coverage reports to Codecov
5354
uses: codecov/codecov-action@v4

‎tox.ini‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ platform =
2424
passenv =
2525
CI
2626
GITHUB_ACTIONS
27+
USERNAME
28+
USER
29+
LOGNAME
30+
TORCHINDUCTOR_CACHE_DIR
2731
extras =
2832
test,examples
2933
commands =

0 commit comments

Comments
 (0)