|
| 1 | +name: CI / CUDA |
| 2 | + |
| 3 | +# Concurrency control: |
| 4 | +# - PRs: new commits on a feature branch will cancel in-progress (outdated) runs. |
| 5 | +# - Push to develop: runs queue sequentially, never cancelled. |
| 6 | +# - `workflow_dispatch`: groups by branch and queues if run on develop. |
| 7 | +concurrency: |
| 8 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 9 | + cancel-in-progress: ${{ github.ref != 'refs/heads/develop' }} |
| 10 | +on: |
| 11 | + push: |
| 12 | + branches: [develop] |
| 13 | + pull_request: { } |
| 14 | + workflow_dispatch: { } |
| 15 | + |
| 16 | +permissions: |
| 17 | + actions: read |
| 18 | + contents: read |
| 19 | + |
| 20 | +env: |
| 21 | + CARGO_TERM_COLOR: auto |
| 22 | + RUST_BACKTRACE: 1 |
| 23 | + |
| 24 | +jobs: |
| 25 | + cuda-build-lint: |
| 26 | + if: github.repository == 'vortex-data/vortex' |
| 27 | + name: "CUDA build & lint" |
| 28 | + timeout-minutes: 40 |
| 29 | + runs-on: runs-on=${{ github.run_id }}/runner=gpu/tag=cuda-build |
| 30 | + steps: |
| 31 | + - uses: runs-on/action@v2 |
| 32 | + with: |
| 33 | + sccache: s3 |
| 34 | + - uses: actions/checkout@v6 |
| 35 | + - uses: ./.github/actions/setup-rust |
| 36 | + with: |
| 37 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 38 | + - uses: ./.github/actions/check-rebuild |
| 39 | + with: |
| 40 | + command: >- |
| 41 | + cargo build --locked --all-features --all-targets |
| 42 | + -p vortex-cuda -p vortex-cub -p vortex-nvcomp |
| 43 | + -p gpu-scan-cli -p vortex-test-e2e-cuda |
| 44 | + - name: Clippy CUDA crates |
| 45 | + run: | |
| 46 | + cargo clippy --locked --all-features --all-targets \ |
| 47 | + -p vortex-cuda \ |
| 48 | + -p vortex-cub \ |
| 49 | + -p vortex-nvcomp \ |
| 50 | + -p gpu-scan-cli \ |
| 51 | + -p vortex-test-e2e-cuda \ |
| 52 | + -- -D warnings |
| 53 | +
|
| 54 | + cuda-test: |
| 55 | + if: github.repository == 'vortex-data/vortex' |
| 56 | + name: "CUDA tests" |
| 57 | + timeout-minutes: 30 |
| 58 | + runs-on: runs-on=${{ github.run_id }}/runner=gpu/tag=cuda-tests |
| 59 | + steps: |
| 60 | + - uses: runs-on/action@v2 |
| 61 | + with: |
| 62 | + sccache: s3 |
| 63 | + - name: Display NVIDIA SMI details |
| 64 | + run: | |
| 65 | + nvidia-smi |
| 66 | + nvidia-smi -L |
| 67 | + nvidia-smi -q -d Memory |
| 68 | + - uses: actions/checkout@v6 |
| 69 | + - uses: ./.github/actions/setup-rust |
| 70 | + with: |
| 71 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 72 | + - name: Install nextest |
| 73 | + uses: taiki-e/install-action@v2 |
| 74 | + with: |
| 75 | + tool: nextest |
| 76 | + - name: Rust Tests |
| 77 | + env: |
| 78 | + FLAT_LAYOUT_INLINE_ARRAY_NODE: true |
| 79 | + run: | |
| 80 | + cargo nextest run \ |
| 81 | + --locked \ |
| 82 | + -p vortex-file \ |
| 83 | + -p vortex-cuda \ |
| 84 | + -p vortex-cub \ |
| 85 | + -p vortex-nvcomp \ |
| 86 | + -p vortex-test-e2e-cuda \ |
| 87 | + --all-features \ |
| 88 | + --no-fail-fast \ |
| 89 | + --target x86_64-unknown-linux-gnu \ |
| 90 | + --verbose |
| 91 | +
|
| 92 | + cuda-test-sanitizer: |
| 93 | + if: github.repository == 'vortex-data/vortex' |
| 94 | + name: "CUDA tests (${{ matrix.sanitizer }})" |
| 95 | + timeout-minutes: 30 |
| 96 | + runs-on: runs-on=${{ github.run_id }}/runner=gpu/tag=cuda-test-sanitizer |
| 97 | + strategy: |
| 98 | + fail-fast: false |
| 99 | + matrix: |
| 100 | + include: |
| 101 | + - sanitizer: memcheck |
| 102 | + runner_flags: "--tool memcheck --leak-check=full --error-exitcode 1" |
| 103 | + # TODO(joe): try to re-enable racecheck, it is hanging in CI. |
| 104 | + # - sanitizer: racecheck |
| 105 | + # runner_flags: "--tool racecheck --error-exitcode 1" |
| 106 | + - sanitizer: synccheck |
| 107 | + runner_flags: "--tool synccheck --error-exitcode 1" |
| 108 | + - sanitizer: initcheck |
| 109 | + runner_flags: "--tool initcheck --error-exitcode 1" |
| 110 | + steps: |
| 111 | + - uses: runs-on/action@v2 |
| 112 | + with: |
| 113 | + sccache: s3 |
| 114 | + - name: Display NVIDIA SMI details |
| 115 | + run: | |
| 116 | + nvidia-smi |
| 117 | + nvidia-smi -L |
| 118 | + nvidia-smi -q -d Memory |
| 119 | + - uses: actions/checkout@v6 |
| 120 | + - uses: ./.github/actions/setup-rust |
| 121 | + with: |
| 122 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 123 | + - name: Build tests |
| 124 | + run: cargo test --locked -p vortex-cuda --all-features --target x86_64-unknown-linux-gnu --no-run |
| 125 | + - name: "CUDA - ${{ matrix.sanitizer }}" |
| 126 | + env: |
| 127 | + CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUNNER: "compute-sanitizer ${{ matrix.runner_flags }}" |
| 128 | + run: cargo test --locked -p vortex-cuda --all-features --target x86_64-unknown-linux-gnu |
| 129 | + |
| 130 | + cuda-test-cudf: |
| 131 | + if: github.repository == 'vortex-data/vortex' |
| 132 | + name: "CUDA tests (cudf)" |
| 133 | + timeout-minutes: 30 |
| 134 | + runs-on: runs-on=${{ github.run_id }}/runner=gpu/tag=cuda-test-cudf |
| 135 | + steps: |
| 136 | + - uses: runs-on/action@v2 |
| 137 | + with: |
| 138 | + sccache: s3 |
| 139 | + - name: Display NVIDIA SMI details |
| 140 | + run: | |
| 141 | + nvidia-smi |
| 142 | + nvidia-smi -L |
| 143 | + nvidia-smi -q -d Memory |
| 144 | + - uses: actions/checkout@v6 |
| 145 | + - uses: ./.github/actions/setup-rust |
| 146 | + with: |
| 147 | + repo-token: ${{ secrets.GITHUB_TOKEN }} |
| 148 | + - name: Build cudf test library |
| 149 | + run: cargo build --locked -p vortex-test-e2e-cuda --target x86_64-unknown-linux-gnu |
| 150 | + - name: Download and run cudf-test-harness |
| 151 | + run: | |
| 152 | + curl -fsSL https://github.com/vortex-data/cudf-test-harness/releases/latest/download/cudf-test-harness-x86_64.tar.gz | tar -xz |
| 153 | + cd cudf-test-harness-x86_64 |
| 154 | + compute-sanitizer --tool memcheck --error-exitcode 1 ./cudf-test-harness check $GITHUB_WORKSPACE/target/x86_64-unknown-linux-gnu/debug/libvortex_test_e2e_cuda.so |
0 commit comments