Skip to content

Commit 25d01ec

Browse files
committed
[CI] Run build on Ubuntu 22 if CUDA adapter changes.
1 parent c0bff06 commit 25d01ec

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/sycl-detect-changes.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ jobs:
7575
ur:
7676
- 'unified-runtime/**'
7777
- .github/workflows/ur-*
78+
ur_cuda_adapter:
79+
- 'unified-runtime/source/adapters/cuda/**'
7880
7981
- name: Set output
8082
id: result
@@ -87,7 +89,7 @@ jobs:
8789
return '${{ steps.changes.outputs.changes }}';
8890
}
8991
// Treat everything as changed for huge PRs.
90-
return ["llvm", "llvm_spirv", "clang", "sycl_jit", "xptifw", "libclc", "sycl", "ci", "esimd", "ur"];
92+
return ["llvm", "llvm_spirv", "clang", "sycl_jit", "xptifw", "libclc", "sycl", "ci", "esimd", "ur", "ur_cuda_adapter"];
9193
9294
- run: echo '${{ steps.result.outputs.result }}'
9395

.github/workflows/sycl-linux-precommit.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,22 @@ jobs:
5252
changes: ${{ needs.detect_changes.outputs.filters }}
5353
e2e_binaries_artifact: sycl_e2e_bin_default
5454

55+
# If a PR changes CUDA adapter, run the build on Ubuntu 22.04 as well.
56+
# Ubuntu 22.04 container has CUDA 12.1 installed while Ubuntu 24.0 image
57+
# has CUDA 12.6.1 installed.
58+
# The idea is to ensure that the code works with both CUDA versions.
59+
build_ubuntu2204:
60+
needs: [detect_changes]
61+
if: always() && !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur_cuda_adapter')
62+
uses: ./.github/workflows/sycl-linux-build.yml
63+
with:
64+
build_ref: ${{ github.sha }}
65+
build_cache_root: "/__w/"
66+
build_artifact_suffix: "default"
67+
build_cache_suffix: "default"
68+
build_image: "ghcr.io/intel/llvm/ubuntu2204_build:latest"
69+
changes: ${{ needs.detect_changes.outputs.filters }}
70+
5571
run_prebuilt_e2e_tests:
5672
needs: [build, detect_changes]
5773
if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}

0 commit comments

Comments
 (0)