Skip to content
Closed
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
21 changes: 21 additions & 0 deletions .github/workflows/conda-python-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ on:
When this is non-empty, that secret's value is used in place of the default repo-level token
anywhere that environment variable GH_TOKEN is set. This is especially useful for downloading
artifacts from other private repos, which repo tokens do not have access to.
numba-cache-key-prefix:
type: string
required: false
default: ""
description: |
When non-empty, restore and save Numba's CUDA compilation cache under this key prefix.
The workflow adds the Python, CUDA, architecture, Linux, and GPU matrix values so cached
device code is only reused in a compatible test environment.
secrets:
script-env-secret-1-key:
description: |
Expand Down Expand Up @@ -206,6 +214,19 @@ jobs:
with:
enable-apt: true

- name: Restore Numba CUDA cache
if: inputs.numba-cache-key-prefix != ''
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ${{ github.workspace }}/.cache/numba
key: ${{ inputs.numba-cache-key-prefix }}-cuda${{ matrix.CUDA_VER }}-py${{ matrix.PY_VER }}-${{ matrix.ARCH }}-${{ matrix.LINUX_VER }}-${{ matrix.GPU }}-${{ hashFiles('**/*.py', 'dependencies.yaml') }}
restore-keys: |
${{ inputs.numba-cache-key-prefix }}-cuda${{ matrix.CUDA_VER }}-py${{ matrix.PY_VER }}-${{ matrix.ARCH }}-${{ matrix.LINUX_VER }}-${{ matrix.GPU }}-

- name: Configure Numba CUDA cache
if: inputs.numba-cache-key-prefix != ''
run: echo "NUMBA_CACHE_DIR=${GITHUB_WORKSPACE}/.cache/numba" >> "${GITHUB_ENV}"

# Install latest rapidsai/sccache client and configure sccache-dist
- name: Setup sccache-dist
uses: rapidsai/shared-actions/setup-sccache-dist@main
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/wheels-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ on:
type: boolean
required: false
default: false
numba-cache-key-prefix:
type: string
required: false
default: ""
description: |
When non-empty, restore and save Numba's CUDA compilation cache under this key prefix.
The workflow adds the Python, CUDA, architecture, Linux, and GPU matrix values so cached
device code is only reused in a compatible test environment.
secrets:
script-env-secret-1-key:
description: |
Expand Down Expand Up @@ -212,6 +220,19 @@ jobs:
with:
enable-apt: true

- name: Restore Numba CUDA cache
if: inputs.numba-cache-key-prefix != ''
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ${{ github.workspace }}/.cache/numba
key: ${{ inputs.numba-cache-key-prefix }}-cuda${{ matrix.CUDA_VER }}-py${{ matrix.PY_VER }}-${{ matrix.ARCH }}-${{ matrix.LINUX_VER }}-${{ matrix.GPU }}-${{ hashFiles('**/*.py', 'dependencies.yaml') }}
restore-keys: |
${{ inputs.numba-cache-key-prefix }}-cuda${{ matrix.CUDA_VER }}-py${{ matrix.PY_VER }}-${{ matrix.ARCH }}-${{ matrix.LINUX_VER }}-${{ matrix.GPU }}-

- name: Configure Numba CUDA cache
if: inputs.numba-cache-key-prefix != ''
run: echo "NUMBA_CACHE_DIR=${GITHUB_WORKSPACE}/.cache/numba" >> "${GITHUB_ENV}"

# Install latest rapidsai/sccache client and configure sccache-dist
- name: Setup sccache-dist
uses: rapidsai/shared-actions/setup-sccache-dist@main
Expand Down