Skip to content

Commit fa89b05

Browse files
[SYCL][Test E2E] Use %{build}/%{run} in Plugin tests (#9331)
1 parent f5ea811 commit fa89b05

File tree

53 files changed

+165
-182
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+165
-182
lines changed

sycl/test-e2e/Plugin/enqueue-arg-order-buffer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// UNSUPPORTED: hip_nvidia
2-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
3-
// RUN: env SYCL_PI_TRACE=2 %GPU_RUN_PLACEHOLDER %t.out %GPU_CHECK_PLACEHOLDER
4-
// RUN: env SYCL_PI_TRACE=2 %CPU_RUN_PLACEHOLDER %t.out %CPU_CHECK_PLACEHOLDER
2+
// UNSUPPORTED: accelerator
3+
// RUN: %{build} -o %t.out
4+
// RUN: env SYCL_PI_TRACE=2 %{run} %t.out | FileCheck %s
55

66
#include <iostream>
77
#include <sycl/accessor.hpp>

sycl/test-e2e/Plugin/enqueue-arg-order-image.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
// REQUIRES: aspect-ext_intel_legacy_image
22
// UNSUPPORTED: hip
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
3+
// RUN: %{build} -o %t.out
44
// Native images are created with host pointers only with host unified memory
55
// support, enforce it for this test.
6-
// RUN: env SYCL_HOST_UNIFIED_MEMORY=1 SYCL_PI_TRACE=2 %GPU_RUN_PLACEHOLDER %t.out %GPU_CHECK_PLACEHOLDER
7-
// RUN: env SYCL_HOST_UNIFIED_MEMORY=1 SYCL_PI_TRACE=2 %CPU_RUN_PLACEHOLDER %t.out %CPU_CHECK_PLACEHOLDER
6+
// RUN: env SYCL_HOST_UNIFIED_MEMORY=1 SYCL_PI_TRACE=2 %{run} %t.out | FileCheck %s
87

98
#include <iostream>
109
#include <sycl/accessor.hpp>

sycl/test-e2e/Plugin/interop-buffer-cuda.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: cuda
22

3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
55

66
//==--- interop-cuda.cpp - SYCL test for CUDA buffer interop API ----------===//
77
//

sycl/test-e2e/Plugin/interop-cuda-experimental.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// REQUIRES: cuda && cuda_dev_kit
22

3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %cuda_options %s -o %t.out
4-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} %cuda_options -o %t.out
4+
// RUN: %{run} %t.out
55

66
#define SYCL_EXT_ONEAPI_BACKEND_CUDA_EXPERIMENTAL 1
77
#include <sycl/ext/oneapi/experimental/backend/cuda.hpp>

sycl/test-e2e/Plugin/interop-experimental-single-TU-SYCL-CUDA-compilation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %cuda_options -lcudart -lcuda -x cuda %s -o %t.out
2-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
31
// REQUIRES: cuda && cuda_dev_kit
2+
// RUN: %{build} %cuda_options -lcudart -lcuda -x cuda -o %t.out
3+
// RUN: %{run} %t.out
44

55
#include <cuda.h>
66
#include <sycl/sycl.hpp>

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// REQUIRES: level_zero, level_zero_dev_kit
2-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %level_zero_options %s -o %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
52
// UNSUPPORTED: ze_debug-1,ze_debug4
3+
// RUN: %{build} %level_zero_options -o %t.out
4+
// RUN: env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=0 %{run} %t.out
5+
// RUN: env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=1 %{run} %t.out
66

77
#include <iostream>
88
#include <level_zero/ze_api.h>

sycl/test-e2e/Plugin/interop-level-zero-buffer-multi-dim.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// REQUIRES: level_zero, level_zero_dev_kit
2-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %level_zero_options %s -o %t.out
3-
// RUN: env ONEAPI_DEVICE_SELECTOR='level_zero:*' %GPU_RUN_PLACEHOLDER %t.out
2+
// RUN: %{build} %level_zero_options -o %t.out
3+
// RUN: %{run} %t.out
44

55
// Test 2D and 3D interoperability buffers for the Level Zero backend.
66

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// L0 plugin incorrectly reports memory leaks because it doesn't take into
33
// account direct calls to L0 API.
44
// UNSUPPORTED: ze_debug-1,ze_debug4
5-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %level_zero_options %s -o %t.out
6-
// RUN: env SYCL_PI_LEVEL_ZERO_DISABLE_USM_ALLOCATOR=1 ONEAPI_DEVICE_SELECTOR='level_zero:*' ZE_DEBUG=1 %GPU_RUN_PLACEHOLDER %t.out 2>&1 | FileCheck %s
5+
// RUN: %{build} %level_zero_options -o %t.out
6+
// RUN: env SYCL_PI_LEVEL_ZERO_DISABLE_USM_ALLOCATOR=1 ZE_DEBUG=1 %{run} %t.out 2>&1 | FileCheck %s
77

88
// Test for Level Zero buffer interop API.
99
// Check the following cases:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// L0 plugin incorrectly reports memory leaks because it doesn't take into
33
// account direct calls to L0 API.
44
// UNSUPPORTED: ze_debug-1,ze_debug4
5-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %level_zero_options %s -o %t.out
6-
// RUN: env ONEAPI_DEVICE_SELECTOR='level_zero:*' ZE_DEBUG=1 %GPU_RUN_PLACEHOLDER %t.out
5+
// RUN: %{build} %level_zero_options -o %t.out
6+
// RUN: env ZE_DEBUG=1 %{run} %t.out
77

88
// Test interoperability buffer for the Level Zer backend
99

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
// L0 plugin incorrectly reports memory leaks because it doesn't take into
33
// account direct calls to L0 API.
44
// UNSUPPORTED: ze_debug-1,ze_debug4
5-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %level_zero_options %s -o %t.out
6-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5+
// RUN: %{build} %level_zero_options -o %t.out
6+
// RUN: %{run} %t.out
77

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

0 commit comments

Comments
 (0)