From a0547db79efb8194247bd7be5a1ca886574f832c Mon Sep 17 00:00:00 2001 From: Hauke Strasdat Date: Sun, 16 Jun 2024 21:08:47 -0700 Subject: [PATCH] exp: cuda ci --- .github/workflows/cuda_ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/cuda_ci.yml diff --git a/.github/workflows/cuda_ci.yml b/.github/workflows/cuda_ci.yml new file mode 100644 index 00000000..e727e581 --- /dev/null +++ b/.github/workflows/cuda_ci.yml @@ -0,0 +1,32 @@ +name: cuda-compile + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + pre-commit-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - uses: Jimver/cuda-toolkit@v0.2.15 + id: cuda-toolkit + with: + cuda: '12.4.1' + + - name: Display CUDA version + run: | + echo "Installed CUDA version is: ${{ steps.cuda-toolkit.outputs.cuda }}" + + - name: Display CUDA install location + run: | + echo "CUDA install location: ${{ steps.cuda-toolkit.outputs.CUDA_PATH }}" + + - name: Check NVCC Version + run: | + nvcc -V