Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/actions/setup-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ runs:
# ccache-action bug: running "apt-get update" fails on large arm runner.
update-package-index: false

- name: Cache JIT-compiled CUDA kernels
if: ${{ startsWith(inputs.toolkit, 'cuda') }}
uses: actions/cache@v5
with:
path: /tmp/mlx-ptx-cache
key: >-
ptx-${{ runner.os }}-${{ runner.arch }}-${{ inputs.toolkit }}-
${{ hashFiles('mlx/backend/cuda/**') }}

- uses: actions/setup-python@v6
with:
python-version: ${{ inputs.python-version }}
Expand Down
1 change: 1 addition & 0 deletions .github/actions/test-linux/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ runs:
shell: bash
env:
DEVICE: gpu
MLX_PTX_CACHE_DIR: /tmp/mlx-ptx-cache
run: |
echo "::group::Python tests - GPU"
python -m tests discover python/tests -v
Expand Down
Loading