Skip to content

Commit db463bf

Browse files
authored
ci: install cuda-gdb for cuda.core local-CTK tests (#3371)
ci: install cuda-gdb for cuda.core local-CTK tests Install cuda_gdb on top of the mini CTK, using fetch_ctk's install-mode: add, only in local-CTK jobs that run cuda.core tests. This enables test_cuda_gdb_shows_nvrtc_debug_source_lines, which skipped without cuda-gdb on PATH, without growing the default mini CTK.
1 parent 63efb2d commit db463bf

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎.github/workflows/test-wheel-linux.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,18 @@ jobs:
366366
host-platform: ${{ inputs.host-platform }}
367367
cuda-version: ${{ matrix.CUDA_VER }}
368368

369+
- name: Set up cuda_gdb
370+
# $/ loads the action from the workflow's commit: the inputs.sha
371+
# checkout can predate install-mode, and ./ would then wipe the mini CTK.
372+
if: ${{ matrix.LOCAL_CTK == '1' && env.TEST_CORE == 'true' }}
373+
uses: $/.github/actions/fetch_ctk
374+
continue-on-error: false
375+
with:
376+
host-platform: ${{ inputs.host-platform }}
377+
cuda-version: ${{ matrix.CUDA_VER }}
378+
cuda-components: "cuda_gdb"
379+
install-mode: add
380+
369381
- name: Set up cuda_sanitizer_api
370382
if: ${{ (env.TEST_BINDINGS == 'true' || env.TEST_CORE == 'true') && env.SETUP_SANITIZER == '1' }}
371383
uses: ./.github/actions/fetch_ctk

0 commit comments

Comments
 (0)