Skip to content

Commit 18b745c

Browse files
[SYCL][DevOps] Fuse OCL CPU testing into GEN9 Linux task (#9546)
It would increase its duration by several minutes while eliminating 20+ minutes task completely.
1 parent 304b3d4 commit 18b745c

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

.github/workflows/sycl_precommit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
uses: ./.github/workflows/sycl_gen_test_matrix.yml
4949
with:
5050
ref: ${{ github.event.pull_request.head.sha }}
51-
lts_config: "hip_amdgpu;ocl_x64;lin_gen9;esimd_emu;cuda_aws;win_l0_gen12"
51+
lts_config: "hip_amdgpu;lin_intel;esimd_emu;cuda_aws;win_l0_gen12"
5252

5353
linux_default:
5454
name: Linux

devops/test_configs.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"lts": [
33
{
4-
"config": "lin_gen9",
5-
"name": "SYCL E2E on Intel GEN9 GPU",
4+
"config": "lin_intel",
5+
"name": "SYCL E2E on Intel CPU/GEN9 GPU",
66
"runs-on": [
77
"Linux",
88
"gen9"
99
],
1010
"image": "${{ inputs.intel_drivers_image }}",
1111
"container_options": "-u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN",
12-
"targets": "ext_oneapi_level_zero:gpu;opencl:gpu",
12+
"targets": "ext_oneapi_level_zero:gpu;opencl:gpu;opencl:cpu",
1313
"cmake_args": ""
1414
},
1515
{

sycl/test-e2e/Config/allowlist.cpp

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
// REQUIRES: cpu
1+
// REQUIRES: opencl && cpu
22
// RUN: %{build} -o %t.out
33
//
4-
// RUN: env PRINT_DEVICE_INFO=1 %{run-unfiltered-devices} %t.out > %t1.conf
5-
// RUN: env TEST_DEVICE_AVAILABLE=1 env SYCL_CONFIG_FILE_NAME=%t1.conf %{run-unfiltered-devices} %t.out
4+
// FIXME: Using ONEAPI_DEVICE_SELECTOR=\*:cpu results in seg. faults that I
5+
// cannot reproduce under gdb.
6+
// RUN: env PRINT_DEVICE_INFO=1 ONEAPI_DEVICE_SELECTOR=opencl:cpu %{run-unfiltered-devices} %t.out > %t1.conf
7+
// RUN: env TEST_DEVICE_AVAILABLE=1 env SYCL_CONFIG_FILE_NAME=%t1.conf ONEAPI_DEVICE_SELECTOR=opencl:cpu %{run-unfiltered-devices} %t.out
68
//
7-
// RUN: env PRINT_PLATFORM_INFO=1 %{run-unfiltered-devices} %t.out > %t2.conf
8-
// RUN: env TEST_DEVICE_AVAILABLE=1 env SYCL_CONFIG_FILE_NAME=%t2.conf %{run-unfiltered-devices} %t.out
9+
// RUN: env PRINT_PLATFORM_INFO=1 ONEAPI_DEVICE_SELECTOR=opencl:cpu %{run-unfiltered-devices} %t.out > %t2.conf
10+
// RUN: env TEST_DEVICE_AVAILABLE=1 env SYCL_CONFIG_FILE_NAME=%t2.conf ONEAPI_DEVICE_SELECTOR=opencl:cpu %{run-unfiltered-devices} %t.out
911
//
10-
// RUN: env TEST_DEVICE_IS_NOT_AVAILABLE=1 env SYCL_DEVICE_ALLOWLIST="PlatformName:{{SUCH NAME DOESN'T EXIST}}" %{run-unfiltered-devices} %t.out
11-
// RUN: env TEST_INCORRECT_VALUE=1 env SYCL_DEVICE_ALLOWLIST="IncorrectKey:{{.*}}" %{run-unfiltered-devices} %t.out
12+
// RUN: env TEST_DEVICE_IS_NOT_AVAILABLE=1 env SYCL_DEVICE_ALLOWLIST="PlatformName:{{SUCH NAME DOESN'T EXIST}}" ONEAPI_DEVICE_SELECTOR=opencl:cpu %{run-unfiltered-devices} %t.out
13+
// RUN: env TEST_INCORRECT_VALUE=1 env SYCL_DEVICE_ALLOWLIST="IncorrectKey:{{.*}}" ONEAPI_DEVICE_SELECTOR=opencl:cpu %{run-unfiltered-devices} %t.out
1214

1315
#include <algorithm>
1416
#include <cstdlib>

0 commit comments

Comments
 (0)