Skip to content

Commit 9131ceb

Browse files
authored
[CI] Move Battlemage testing to precommit (#16948)
Using prebuilt tests significantly speeds up job execution time, down to ~4minutes total for BMG here. Nothing else runs that fast, so even though we only have one machine the tests run so quickly that we should be able to add it to precommit easily. Only test on L0 for now, because there are fails on OCL. Also fix some test issue exposed by testing a single target device. --------- Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
1 parent a8f30a9 commit 9131ceb

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ jobs:
100100
target_devices: level_zero:gpu;opencl:gpu
101101
use_igc_dev: true
102102
extra_lit_opts: -j 50
103+
- name: Intel Battlemage Graphics
104+
runner: '["Linux", "bmg"]'
105+
image_options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
106+
target_devices: level_zero:gpu
107+
# The new Xe kernel driver used by BMG doesn't support resetting.
108+
reset_intel_gpu: false
103109
uses: ./.github/workflows/sycl-linux-run-tests.yml
104110
with:
105111
name: ${{ matrix.name }}

.github/workflows/sycl-post-commit.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,6 @@ jobs:
5252
runner: '["Linux", "arc"]'
5353
extra_lit_opts: --param matrix-xmx8=True
5454
reset_intel_gpu: true
55-
- name: Intel Battlemage Graphics with Level Zero
56-
runner: '["Linux", "bmg"]'
57-
target_devices: level_zero:gpu
58-
# The new Xe kernel driver used by BMG doesn't support resetting.
59-
reset_intel_gpu: false
6055
- name: AMD/HIP
6156
runner: '["Linux", "amdgpu"]'
6257
image_options: -u 1001 --device=/dev/dri --device=/dev/kfd

sycl/test-e2e/Regression/build_log.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// REQUIRES: gpu
22
// RUN: %{build} -o %t.exe
3-
// RUN: %{run} %t.exe 2> %t.out || true
3+
// RUN: %{run} %t.exe 2> %t.out
44

55
// RUN: FileCheck %s --check-prefix=CHECK-EXPECTED-ERROR --input-file %t.out
66
// CHECK-EXPECTED-ERROR: error: backend compiler failed build
77

8-
// XFAIL: *
8+
// XFAIL: !arch-intel_gpu_bmg_g21
99
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/16416
1010

1111
#include <stdio.h>

0 commit comments

Comments
 (0)