From f77cfe1308e7ce9109aa2ee194432a6c5837c11d Mon Sep 17 00:00:00 2001 From: Antoine Boucher Date: Sat, 28 Sep 2024 11:55:47 -0400 Subject: [PATCH 1/5] Update continuous.yml --- .github/workflows/continuous.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index ac6cd57..1a763d7 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -135,7 +135,7 @@ jobs: - uses: Jimver/cuda-toolkit@v0.2.17 id: cuda-toolkit with: - cuda: '12.4.0' + cuda: '12.5.0' sub-packages: '["nvcc"]' method: 'network' From 75f1dc48022be2dd80fad443c058583094135c6e Mon Sep 17 00:00:00 2001 From: Antoine Boucher Date: Sat, 28 Sep 2024 12:08:06 -0400 Subject: [PATCH 2/5] Update continuous.yml --- .github/workflows/continuous.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index 1a763d7..0c46e35 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -1,6 +1,7 @@ name: Build on: + workflow_dispatch: push: branches: [main] pull_request: From b98205fbc3f39bd122b19ea8d826c919032c6677 Mon Sep 17 00:00:00 2001 From: Antoine Boucher Date: Sat, 28 Sep 2024 12:21:44 -0400 Subject: [PATCH 3/5] Multiple CUDA Version --- .github/workflows/continuous.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index 0c46e35..27256e8 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -109,18 +109,23 @@ jobs: run: cd build; ctest --verbose -j ${{ steps.cpu-cores.outputs.count }} build_cuda: # no runtime support for CUDA, so only build on Linux - name: ${{ matrix.name }} CUDA (${{ matrix.config }}) + name: ${{ matrix.name }} CUDA (${{ matrix.config }}) - CUDA ${{ matrix.cuda }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: os: [ubuntu-latest] - config: - - Debug - # - Release # cannot run multiple cuda-toolkit jobs in parallel + config: [Debug, Release] + cuda: ['12.5.0', '11.8.0'] # Add other CUDA versions you want to test include: - os: ubuntu-latest name: Linux + config: Debug + cuda: '12.5.0' + - os: ubuntu-latest + name: Linux + config: Release + cuda: '11.8.0' steps: - name: Checkout repository uses: actions/checkout@v4.0.0 @@ -128,15 +133,14 @@ jobs: fetch-depth: 10 - name: Dependencies (Linux) - if: runner.os == 'Linux' run: | - sudo apt-get install ccache + sudo apt-get install -y ccache echo 'CACHE_PATH=~/.cache/ccache' >> "$GITHUB_ENV" - uses: Jimver/cuda-toolkit@v0.2.17 id: cuda-toolkit with: - cuda: '12.5.0' + cuda: ${{ matrix.cuda }} sub-packages: '["nvcc"]' method: 'network' @@ -149,7 +153,7 @@ jobs: uses: actions/cache@v4.0.2 with: path: ${{ env.CACHE_PATH }} - key: ${{ runner.os }}-${{ matrix.config }}-CUDA-cache + key: ${{ runner.os }}-${{ matrix.config }}-CUDA-${{ matrix.cuda }}-cache - name: Prepare ccache run: | From 2ea2cf0a4ba8cb51a27917fc6773812e32ac6ee8 Mon Sep 17 00:00:00 2001 From: Antoine Boucher Date: Sat, 28 Sep 2024 12:30:19 -0400 Subject: [PATCH 4/5] Update continuous.yml --- .github/workflows/continuous.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index 27256e8..829ec22 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -35,7 +35,7 @@ jobs: - name: Dependencies (Linux) if: runner.os == 'Linux' run: | - sudo apt-get install ccache + sudo apt-get install -y ccache echo 'CACHE_PATH=~/.cache/ccache' >> "$GITHUB_ENV" - name: Dependencies (macOS) @@ -116,7 +116,7 @@ jobs: matrix: os: [ubuntu-latest] config: [Debug, Release] - cuda: ['12.5.0', '11.8.0'] # Add other CUDA versions you want to test + cuda: ['12.5.0', '11.8.0'] include: - os: ubuntu-latest name: Linux @@ -133,6 +133,7 @@ jobs: fetch-depth: 10 - name: Dependencies (Linux) + if: runner.os == 'Linux' run: | sudo apt-get install -y ccache echo 'CACHE_PATH=~/.cache/ccache' >> "$GITHUB_ENV" From 64fb7b7d50713fe296224830000bf1d5b8c21d59 Mon Sep 17 00:00:00 2001 From: Antoine Boucher Date: Sat, 28 Sep 2024 12:33:50 -0400 Subject: [PATCH 5/5] Clean up --- .github/workflows/continuous.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/continuous.yml b/.github/workflows/continuous.yml index 829ec22..db2e5e2 100644 --- a/.github/workflows/continuous.yml +++ b/.github/workflows/continuous.yml @@ -1,7 +1,6 @@ name: Build on: - workflow_dispatch: push: branches: [main] pull_request: @@ -108,7 +107,7 @@ jobs: - name: Tests run: cd build; ctest --verbose -j ${{ steps.cpu-cores.outputs.count }} - build_cuda: # no runtime support for CUDA, so only build on Linux + build_cuda: name: ${{ matrix.name }} CUDA (${{ matrix.config }}) - CUDA ${{ matrix.cuda }} runs-on: ${{ matrix.os }} strategy: