Skip to content

Commit f81499e

Browse files
[SYCL][TEST E2E] Remove %sycl_be substitution (#9190)
We have %BE_RUN_PLACEHOLDER substitution that can be used instead.
1 parent aa2ebe7 commit f81499e

12 files changed

+21
-22
lines changed

sycl/test-e2e/Basic/aspects.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clangxx -fsycl %s -o %t.out
2-
// RUN: env ONEAPI_DEVICE_SELECTOR='%sycl_be:*' %t.out
2+
// RUN: %BE_RUN_PLACEHOLDER %t.out
33
//
44
// Hip is missing some of the parameters tested here so it fails with NVIDIA
55
// XFAIL: hip_nvidia

sycl/test-e2e/Basic/context_platforms.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clangxx -fsycl %s -o %t.out
2-
// RUN: env ONEAPI_DEVICE_SELECTOR='%sycl_be:*' %t.out
2+
// RUN: %BE_RUN_PLACEHOLDER %t.out
33
#include <iostream>
44
#include <sycl/sycl.hpp>
55

sycl/test-e2e/Basic/diagnostics/device-check.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: env ONEAPI_DEVICE_SELECTOR='%sycl_be:*' SYCL_DEVICE_TYPE=cpu %t.out
3-
// RUN: env ONEAPI_DEVICE_SELECTOR='%sycl_be:*' SYCL_DEVICE_TYPE=gpu %t.out
4-
// RUN: env ONEAPI_DEVICE_SELECTOR='%sycl_be:*' SYCL_DEVICE_TYPE=acc %t.out
5-
// RUN: env ONEAPI_DEVICE_SELECTOR='%sycl_be:*' SYCL_DEVICE_TYPE=CPU %t.out
6-
// RUN: env ONEAPI_DEVICE_SELECTOR='%sycl_be:*' SYCL_DEVICE_TYPE=GPU %t.out
7-
// RUN: env ONEAPI_DEVICE_SELECTOR='%sycl_be:*' SYCL_DEVICE_TYPE=ACC %t.out
8-
// RUN: env ONEAPI_DEVICE_SELECTOR='%sycl_be:*' SYCL_DEVICE_TYPE=Cpu %t.out
9-
// RUN: env ONEAPI_DEVICE_SELECTOR='%sycl_be:*' SYCL_DEVICE_TYPE=Gpu %t.out
10-
// RUN: env ONEAPI_DEVICE_SELECTOR='%sycl_be:*' SYCL_DEVICE_TYPE=Acc %t.out
11-
// RUN: env ONEAPI_DEVICE_SELECTOR='%sycl_be:*' SYCL_DEVICE_TYPE=XPU %t.out
2+
// RUN: env SYCL_DEVICE_TYPE=cpu %BE_RUN_PLACEHOLDER %t.out
3+
// RUN: env SYCL_DEVICE_TYPE=gpu %BE_RUN_PLACEHOLDER %t.out
4+
// RUN: env SYCL_DEVICE_TYPE=acc %BE_RUN_PLACEHOLDER %t.out
5+
// RUN: env SYCL_DEVICE_TYPE=CPU %BE_RUN_PLACEHOLDER %t.out
6+
// RUN: env SYCL_DEVICE_TYPE=GPU %BE_RUN_PLACEHOLDER %t.out
7+
// RUN: env SYCL_DEVICE_TYPE=ACC %BE_RUN_PLACEHOLDER %t.out
8+
// RUN: env SYCL_DEVICE_TYPE=Cpu %BE_RUN_PLACEHOLDER %t.out
9+
// RUN: env SYCL_DEVICE_TYPE=Gpu %BE_RUN_PLACEHOLDER %t.out
10+
// RUN: env SYCL_DEVICE_TYPE=Acc %BE_RUN_PLACEHOLDER %t.out
11+
// RUN: env SYCL_DEVICE_TYPE=XPU %BE_RUN_PLACEHOLDER %t.out
1212

1313
//==------------------- device-check.cpp --------------------------==//
1414
// This is a diagnostic test which ensures that

sycl/test-e2e/DeprecatedFeatures/platform.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -D__SYCL_INTERNAL_API %s -o %t.out
2-
// RUN: env ONEAPI_DEVICE_SELECTOR='%sycl_be:*' %t.out
2+
// RUN: %BE_RUN_PLACEHOLDER %t.out
33
//==--------------- platform.cpp - SYCL platform test ----------------------==//
44
//
55
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test-e2e/Plugin/interop-l0-direct.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: level_zero, level_zero_dev_kit
22
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %level_zero_options %s -o %t.out
3-
// RUN: env SYCL_BE=PI_LEVEL_ZERO SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=0 %GPU_RUN_PLACEHOLDER %t.out
4-
// RUN: env SYCL_BE=PI_LEVEL_ZERO SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1 %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=0 %GPU_RUN_PLACEHOLDER %t.out
4+
// RUN: env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1 %GPU_RUN_PLACEHOLDER %t.out
55
// UNSUPPORTED: ze_debug-1,ze_debug4
66

77
#include <iostream>

sycl/test-e2e/Plugin/interop-level-zero-get-native-mem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// account direct calls to L0 API.
44
// UNSUPPORTED: ze_debug-1,ze_debug4
55
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %level_zero_options %s -o %t.out
6-
// RUN: env SYCL_BE=PI_LEVEL_ZERO %GPU_RUN_PLACEHOLDER %t.out
6+
// RUN: %GPU_RUN_PLACEHOLDER %t.out
77

88
// Test get_native_mem for the Level Zero backend.
99

sycl/test-e2e/Plugin/interop-level-zero-interop-task-mem-buffer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: level_zero, level_zero_dev_kit
22
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %level_zero_options %s -o %t.out
3-
// RUN: env SYCL_BE=PI_LEVEL_ZERO %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44

55
// Test for Level Zero interop_task for buffer.
66
// Level-Zero

sycl/test-e2e/Plugin/interop-level-zero-interop-task-mem-image.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: level_zero, level_zero_dev_kit
22
// UNSUPPORTED: gpu-intel-pvc
33
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %level_zero_options %s -o %t.out
4-
// RUN: env SYCL_BE=PI_LEVEL_ZERO %GPU_RUN_PLACEHOLDER %t.out
4+
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55

66
// Test for Level Zero interop_task for image.
77
// Level-Zero

sycl/test-e2e/Plugin/interop-level-zero-keep-ownership.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: level_zero, level_zero_dev_kit
22
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out %level_zero_options
3-
// RUN: env SYCL_BE=PI_LEVEL_ZERO %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44

55
// Test for Level Zero interop API where SYCL RT doesn't take ownership
66

sycl/test-e2e/Plugin/interop-level-zero.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: level_zero, level_zero_dev_kit
22
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %level_zero_options %s -o %t.out
3-
// RUN: env SYCL_BE=PI_LEVEL_ZERO SYCL_PI_LEVEL_ZERO_DEVICE_SCOPE_EVENTS=2 SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=0 %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: env SYCL_PI_LEVEL_ZERO_DEVICE_SCOPE_EVENTS=2 SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=0 %GPU_RUN_PLACEHOLDER %t.out
44
// UNSUPPORTED: ze_debug-1,ze_debug4
55

66
// Test for Level Zero interop API

sycl/test-e2e/Scheduler/MultipleDevices.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: env ONEAPI_DEVICE_SELECTOR="%sycl_be:*" %t.out
2+
// RUN: %BE_RUN_PLACEHOLDER %t.out
33
//
44
// XFAIL: hip_nvidia
55

sycl/test-e2e/lit.cfg.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@
243243

244244
lit_config.note("Backend: {BACKEND}".format(BACKEND=config.sycl_be))
245245

246-
config.substitutions.append( ('%sycl_be', config.sycl_be) )
247246
# Use short names for LIT rules
248247
config.available_features.add(config.sycl_be.replace('ext_intel_', '').replace('ext_oneapi_', ''))
249248
be_run_substitute = "env ONEAPI_DEVICE_SELECTOR='{SYCL_PLUGIN}:* '".format(SYCL_PLUGIN=config.sycl_be)

0 commit comments

Comments
 (0)