Skip to content

Commit

Permalink
[SYCL][DevOps] Fuse OCL CPU testing into GEN9 Linux task (intel#9546)
Browse files Browse the repository at this point in the history
It would increase its duration by several minutes while eliminating 20+
minutes task completely.
  • Loading branch information
aelovikov-intel authored May 23, 2023
1 parent 304b3d4 commit 18b745c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sycl_precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
uses: ./.github/workflows/sycl_gen_test_matrix.yml
with:
ref: ${{ github.event.pull_request.head.sha }}
lts_config: "hip_amdgpu;ocl_x64;lin_gen9;esimd_emu;cuda_aws;win_l0_gen12"
lts_config: "hip_amdgpu;lin_intel;esimd_emu;cuda_aws;win_l0_gen12"

linux_default:
name: Linux
Expand Down
6 changes: 3 additions & 3 deletions devops/test_configs.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"lts": [
{
"config": "lin_gen9",
"name": "SYCL E2E on Intel GEN9 GPU",
"config": "lin_intel",
"name": "SYCL E2E on Intel CPU/GEN9 GPU",
"runs-on": [
"Linux",
"gen9"
],
"image": "${{ inputs.intel_drivers_image }}",
"container_options": "-u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN",
"targets": "ext_oneapi_level_zero:gpu;opencl:gpu",
"targets": "ext_oneapi_level_zero:gpu;opencl:gpu;opencl:cpu",
"cmake_args": ""
},
{
Expand Down
16 changes: 9 additions & 7 deletions sycl/test-e2e/Config/allowlist.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
// REQUIRES: cpu
// REQUIRES: opencl && cpu
// RUN: %{build} -o %t.out
//
// RUN: env PRINT_DEVICE_INFO=1 %{run-unfiltered-devices} %t.out > %t1.conf
// RUN: env TEST_DEVICE_AVAILABLE=1 env SYCL_CONFIG_FILE_NAME=%t1.conf %{run-unfiltered-devices} %t.out
// FIXME: Using ONEAPI_DEVICE_SELECTOR=\*:cpu results in seg. faults that I
// cannot reproduce under gdb.
// RUN: env PRINT_DEVICE_INFO=1 ONEAPI_DEVICE_SELECTOR=opencl:cpu %{run-unfiltered-devices} %t.out > %t1.conf
// RUN: env TEST_DEVICE_AVAILABLE=1 env SYCL_CONFIG_FILE_NAME=%t1.conf ONEAPI_DEVICE_SELECTOR=opencl:cpu %{run-unfiltered-devices} %t.out
//
// RUN: env PRINT_PLATFORM_INFO=1 %{run-unfiltered-devices} %t.out > %t2.conf
// RUN: env TEST_DEVICE_AVAILABLE=1 env SYCL_CONFIG_FILE_NAME=%t2.conf %{run-unfiltered-devices} %t.out
// RUN: env PRINT_PLATFORM_INFO=1 ONEAPI_DEVICE_SELECTOR=opencl:cpu %{run-unfiltered-devices} %t.out > %t2.conf
// RUN: env TEST_DEVICE_AVAILABLE=1 env SYCL_CONFIG_FILE_NAME=%t2.conf ONEAPI_DEVICE_SELECTOR=opencl:cpu %{run-unfiltered-devices} %t.out
//
// RUN: env TEST_DEVICE_IS_NOT_AVAILABLE=1 env SYCL_DEVICE_ALLOWLIST="PlatformName:{{SUCH NAME DOESN'T EXIST}}" %{run-unfiltered-devices} %t.out
// RUN: env TEST_INCORRECT_VALUE=1 env SYCL_DEVICE_ALLOWLIST="IncorrectKey:{{.*}}" %{run-unfiltered-devices} %t.out
// 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
// RUN: env TEST_INCORRECT_VALUE=1 env SYCL_DEVICE_ALLOWLIST="IncorrectKey:{{.*}}" ONEAPI_DEVICE_SELECTOR=opencl:cpu %{run-unfiltered-devices} %t.out

#include <algorithm>
#include <cstdlib>
Expand Down

0 comments on commit 18b745c

Please sign in to comment.