Skip to content

Commit 7eb9922

Browse files
authored
[CI] Run ESIMD tests on Arc in precommit when ESIMD changed (#12651)
Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
1 parent 76ec3f0 commit 7eb9922

File tree

3 files changed

+36
-3
lines changed

3 files changed

+36
-3
lines changed

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

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
filters:
77
description: Matched filters
88
value: ${{ jobs.need_check.outputs.filters }}
9+
arc_tests:
10+
description: Tests to run on Arc
11+
value: ${{ jobs.need_check.outputs.arc_tests }}
912

1013
jobs:
1114
need_check:
@@ -16,6 +19,7 @@ jobs:
1619
timeout-minutes: 3
1720
outputs:
1821
filters: ${{ steps.result.outputs.result }}
22+
arc_tests: ${{ steps.arc_tests.outputs.arc_tests }}
1923
steps:
2024
- name: Check file changes
2125
uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd
@@ -57,6 +61,19 @@ jobs:
5761
- devops/scripts/install_drivers.sh
5862
perf-tests:
5963
- sycl/test-e2e/PerformanceTests/**
64+
esimd:
65+
- 'llvm/lib/SYCLLowerIR/ESIMD/**'
66+
- 'llvm/lib/SYCLLowerIR/LowerInvokeSimd.cpp'
67+
- 'llvm/include/llvm/SYCLLowerIR/LowerInvokeSimd.h'
68+
- 'sycl/include/std/experimental/simd.hpp'
69+
- 'sycl/include/std/experimental/simd.hpp'
70+
- 'sycl/include/sycl/ext/intel/esimd.hpp'
71+
- 'sycl/include/sycl/ext/intel/esimd/**'
72+
- 'sycl/include/sycl/ext/intel/esimd.hpp'
73+
- 'sycl/include/sycl/ext/intel/experimental/esimd/**'
74+
- 'sycl/include/sycl/ext/oneapi/experimental/invoke_simd.hpp'
75+
- 'sycl/include/sycl/ext/oneapi/experimental/detail/invoke_simd_types.hpp'
76+
- 'sycl/test-e2e/(ESIMD|InvokeSimd)/**'
6077
6178
- name: Set output
6279
id: result
@@ -69,6 +86,15 @@ jobs:
6986
return '${{ steps.changes.outputs.changes }}';
7087
}
7188
// Treat everything as changed for huge PRs.
72-
return ["llvm", "llvm_spirv", "clang", "sycl_fusion", "xptifw", "libclc", "sycl", "ci"];
89+
return ["llvm", "llvm_spirv", "clang", "sycl_fusion", "xptifw", "libclc", "sycl", "ci", "esimd"];
7390
7491
- run: echo '${{ steps.result.outputs.result }}'
92+
93+
- name: Set Arc tests
94+
id: arc_tests
95+
run: |
96+
if [ "${{ contains(steps.result.outputs.result, 'esimd') }}" == "true" ]; then
97+
echo 'arc_tests="(ESIMD|InvokeSimd|Matrix)/"' >> "$GITHUB_OUTPUT"
98+
else
99+
echo 'arc_tests="Matrix/"' >> "$GITHUB_OUTPUT"
100+
fi

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ jobs:
6868
reset_gpu: true
6969
install_drivers: ${{ contains(needs.detect_changes.outputs.filters, 'drivers') }}
7070
extra_lit_opts: --param gpu-intel-gen12=True
71-
- name: Matrix E2E tests on Intel Arc A-Series Graphics
71+
- name: E2E tests on Intel Arc A-Series Graphics
7272
runner: '["Linux", "arc"]'
7373
image: ghcr.io/intel/llvm/ubuntu2204_intel_drivers:latest
7474
image_options: -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
7575
target_devices: ext_oneapi_level_zero:gpu;opencl:gpu
7676
reset_gpu: true
7777
install_drivers: ${{ contains(needs.detect_changes.outputs.filters, 'drivers') }}
7878
extra_lit_opts: --param matrix-xmx8=True --param gpu-intel-dg2=True
79-
env: '{"LIT_FILTER":"Matrix/"}'
79+
env: '{"LIT_FILTER":${{ needs.detect_changes.outputs.arc_tests }} }'
8080
uses: ./.github/workflows/sycl-linux-run-tests.yml
8181
with:
8282
name: ${{ matrix.name }}

sycl/test-e2e/ESIMD/lit.local.cfg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,10 @@ config.required_features += ['gpu']
55

66
if 'gpu-intel-gen9' in config.available_features and platform.system() == 'Windows':
77
config.unsupported = True
8+
9+
# We need this to fix failures when run on OCL.
10+
# The current DG2 postcommit job only runs L0 anyway,
11+
# so there's no difference in coverage.
12+
# We should investigate why OCL fails separately.
13+
if 'gpu-intel-dg2' in config.available_features:
14+
config.required_features += ['level_zero']

0 commit comments

Comments
 (0)