Skip to content

Commit eac774b

Browse files
[SYCL][Test E2E] Use %{build}/%{run} in DeviceLib tests (#9337)
1 parent 948b007 commit eac774b

Some content is hidden

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

45 files changed

+124
-196
lines changed

sycl/test-e2e/DeviceLib/ITTAnnotations/atomic.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// UNSUPPORTED: hip
22

3-
// RUN: %clangxx -fsycl -fsycl-instrument-device-code %s -o %t.out \
4-
// RUN: -fsycl-targets=%sycl_triple
5-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
6-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
7-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -fsycl-instrument-device-code -o %t.out
4+
// RUN: %{run} %t.out
85

96
#include "CL/sycl.hpp"
107

sycl/test-e2e/DeviceLib/ITTAnnotations/barrier.cpp

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// UNSUPPORTED: hip
22

3-
// RUN: %clangxx -fsycl -fsycl-instrument-device-code %s -o %t.out \
4-
// RUN: -fsycl-targets=%sycl_triple
5-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
6-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
7-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -fsycl-instrument-device-code -o %t.out
4+
// RUN: %{run} %t.out
85

96
#include "CL/sycl.hpp"
107
#include <vector>

sycl/test-e2e/DeviceLib/assert-windows.cpp

+3-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// Disable the test until the fix reaches SYCL test infrastructure.
55
// XFAIL: *
66
//
7-
// RUN: %clangxx -fsycl %s -o %t.out
7+
// RUN: %{build} -o %t.out
88
//
99
// MSVC implementation of assert does not call an unreachable built-in, so the
1010
// program doesn't terminate when fallback is used.
@@ -13,15 +13,13 @@
1313
// explicitly. Since the test is going to crash, we'll have to follow a similar
1414
// approach as on Linux - call the test in a subprocess.
1515
//
16-
// RUN: env SYCL_PI_TRACE=1 SYCL_DEVICELIB_INHIBIT_NATIVE=1 CL_CONFIG_USE_VECTORIZER=False %CPU_RUN_PLACEHOLDER %t.out >%t.stdout.pi.fallback
17-
// RUN: env SHOULD_CRASH=1 SYCL_DEVICELIB_INHIBIT_NATIVE=1 CL_CONFIG_USE_VECTORIZER=False %CPU_RUN_PLACEHOLDER %t.out >%t.stdout.msg.fallback
16+
// RUN: env SYCL_PI_TRACE=1 SYCL_DEVICELIB_INHIBIT_NATIVE=1 CL_CONFIG_USE_VECTORIZER=False %{run} %t.out | FileCheck %s --check-prefix=CHECK-FALLBACK
17+
// RUN: env SHOULD_CRASH=1 SYCL_DEVICELIB_INHIBIT_NATIVE=1 CL_CONFIG_USE_VECTORIZER=False %{run} %t.out | FileCheck %s --check-prefix=CHECK-MESSAGE
1818
//
19-
// RUN: FileCheck %s --check-prefix=CHECK-MESSAGE --input-file %t.stdout.msg.fallback
2019
// CHECK-MESSAGE: {{.*}}assert-windows.cpp:{{[0-9]+}}: (null): global id:
2120
// [{{[0-3]}},0,0], local id: [{{[0-3]}},0,0] Assertion `accessorC[wiID] == 0 &&
2221
// "Invalid value"` failed.
2322
//
24-
// RUN: FileCheck %s --input-file %t.stdout.pi.fallback --check-prefix=CHECK-FALLBACK
2523
// CHECK-FALLBACK: ---> piProgramLink
2624

2725
#include <array>

sycl/test-e2e/DeviceLib/assert.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// REQUIRES: (cpu || cuda ) && linux
2-
// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2+
// RUN: %{build} -DSYCL_FALLBACK_ASSERT=1 -o %t.out
33
// (see the other RUN lines below; it is a bit complicated)
44
//
55
// assert() call in device code guarantees nothing: on some devices it behaves

sycl/test-e2e/DeviceLib/built-ins/ext_native_math.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fsycl-device-code-split=per_kernel %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1+
// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out
2+
// RUN: %{run} %t.out
53

64
// Tests oneapi extension native tanh math function for sycl::vec and
75
// sycl::marray float cases.

sycl/test-e2e/DeviceLib/built-ins/ext_native_math_fp16.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// REQUIRES: aspect-fp16
2-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fsycl-device-code-split=per_kernel %s -o %t.out
3-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
2+
// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out
3+
// RUN: %{run} %t.out
64

75
// OpenCL CPU driver does not support cl_khr_fp16 extension for this reason this
86
// test is compiled with the -fsycl-device-code-split flag

sycl/test-e2e/DeviceLib/built-ins/fast-math-flag.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// RUN: %clangxx -fsycl -ffast-math -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1+
// RUN: %{build} -ffast-math -o %t.out
2+
// RUN: %{run} %t.out
53

64
#include <cassert>
75
#include <sycl/sycl.hpp>

sycl/test-e2e/DeviceLib/built-ins/ftz-flag.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
22

3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -Xclang -fdenormal-fp-math-f32="preserve-sign,preserve-sign" %s -o %t.out %{mathflags}
4-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
6-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -Xclang -fdenormal-fp-math-f32="preserve-sign,preserve-sign" -o %t.out %{mathflags}
4+
// RUN: %{run} %t.out
75

86
#include <cassert>
97
#include <sycl/sycl.hpp>

sycl/test-e2e/DeviceLib/built-ins/marray_integer.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1+
// RUN: %{build} -o %t.out
2+
// RUN: %{run} %t.out
53

64
#include <CL/sycl.hpp>
75

sycl/test-e2e/DeviceLib/built-ins/nan.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// RUN: %clangxx -fsycl -fsycl-device-code-split=per_kernel -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1+
// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out
2+
// RUN: %{run} %t.out
53

64
#include <iostream>
75
#include <sycl/sycl.hpp>

sycl/test-e2e/DeviceLib/built-ins/printf.cpp

+4-8
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@
22
// HIP doesn't support printf.
33
// CUDA doesn't support vector format specifiers ("%v").
44
//
5-
// RUN: %clangxx -fsycl -fsycl-device-code-split=per_kernel -fsycl-targets=%sycl_triple %s -o %t.out
6-
// RUN: %CPU_RUN_PLACEHOLDER %t.out %CPU_CHECK_PLACEHOLDER
7-
// RUN: %GPU_RUN_PLACEHOLDER %t.out %GPU_CHECK_PLACEHOLDER
8-
// RUN: %ACC_RUN_PLACEHOLDER %t.out %ACC_CHECK_PLACEHOLDER
5+
// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out
6+
// RUN: %{run} %t.out | FileCheck %s
97
//
10-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -D__SYCL_USE_NON_VARIADIC_SPIRV_OCL_PRINTF__ %s -o %t_nonvar.out
11-
// RUN: %CPU_RUN_PLACEHOLDER %t_nonvar.out %CPU_CHECK_PLACEHOLDER
12-
// RUN: %GPU_RUN_PLACEHOLDER %t_nonvar.out %GPU_CHECK_PLACEHOLDER
13-
// RUN: %ACC_RUN_PLACEHOLDER %t_nonvar.out %ACC_CHECK_PLACEHOLDER
8+
// RUN: %{build} -D__SYCL_USE_NON_VARIADIC_SPIRV_OCL_PRINTF__ -o %t_nonvar.out
9+
// RUN: %{run} %t_nonvar.out | FileCheck %s
1410

1511
#include <sycl/sycl.hpp>
1612

sycl/test-e2e/DeviceLib/built-ins/scalar_common.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1+
// RUN: %{build} -o %t.out
2+
// RUN: %{run} %t.out
53

64
#include <sycl/sycl.hpp>
75

sycl/test-e2e/DeviceLib/built-ins/scalar_geometric.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1+
// RUN: %{build} -o %t.out
2+
// RUN: %{run} %t.out
53

64
#include <sycl/sycl.hpp>
75

sycl/test-e2e/DeviceLib/built-ins/scalar_integer.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1+
// RUN: %{build} -o %t.out
2+
// RUN: %{run} %t.out
53

64
#include <sycl/sycl.hpp>
75

sycl/test-e2e/DeviceLib/built-ins/scalar_math.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
22

3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %{mathflags} %s -o %t.out
4-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
6-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} %{mathflags} -o %t.out
4+
// RUN: %{run} %t.out
75

86
#include <sycl/sycl.hpp>
97

sycl/test-e2e/DeviceLib/built-ins/scalar_math_2.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1+
// RUN: %{build} -o %t.out
2+
// RUN: %{run} %t.out
53

64
#include <sycl/sycl.hpp>
75

sycl/test-e2e/DeviceLib/built-ins/scalar_relational.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// RUN: %clangxx -fsycl-device-code-split=per_kernel -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1+
// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out
2+
// RUN: %{run} %t.out
53

64
#include <sycl/sycl.hpp>
75

sycl/test-e2e/DeviceLib/built-ins/vector_common.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1+
// RUN: %{build} -o %t.out
2+
// RUN: %{run} %t.out
53

64
#include <sycl/sycl.hpp>
75

sycl/test-e2e/DeviceLib/built-ins/vector_geometric.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// RUN: %clangxx -fsycl-device-code-split=per_kernel -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1+
// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out
2+
// RUN: %{run} %t.out
53

64
#include <sycl/sycl.hpp>
75

sycl/test-e2e/DeviceLib/built-ins/vector_integer.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1+
// RUN: %{build} -o %t.out
2+
// RUN: %{run} %t.out
53

64
#include <sycl/sycl.hpp>
75

sycl/test-e2e/DeviceLib/built-ins/vector_math.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1+
// RUN: %{build} -o %t.out
2+
// RUN: %{run} %t.out
53

64
#include <sycl/sycl.hpp>
75

sycl/test-e2e/DeviceLib/built-ins/vector_relational.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
// FIXME unsupported on windows (opencl and level-zero) until fix of libdevice
22
// UNSUPPORTED: windows && (opencl || level_zero)
3-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
5-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
6-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
75

86
#include <sycl/sycl.hpp>
97

sycl/test-e2e/DeviceLib/cmath-aot.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
// UNSUPPORTED: windows
33

44
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/cmath_test.cpp -o %t.cmath.out
5-
// RUN: %CPU_RUN_PLACEHOLDER %t.cmath.out
5+
// RUN: %{run} %t.cmath.out
66

77
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/cmath_fp64_test.cpp -o %t.cmath.fp64.out
8-
// RUN: %CPU_RUN_PLACEHOLDER %t.cmath.fp64.out
8+
// RUN: %{run} %t.cmath.fp64.out
99

1010
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/std_complex_math_test.cpp -o %t.complex.out
11-
// RUN: %CPU_RUN_PLACEHOLDER %t.complex.out
11+
// RUN: %{run} %t.complex.out
1212

1313
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/std_complex_math_fp64_test.cpp -o %t.complex.fp64.out
14-
// RUN: %CPU_RUN_PLACEHOLDER %t.complex.fp64.out
14+
// RUN: %{run} %t.complex.fp64.out

sycl/test-e2e/DeviceLib/cmath_fp64_test.cpp

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
// REQUIRES: aspect-fp64
2-
// RUN: %clangxx -fsycl %s -o %t.out
3-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
4-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
2+
// UNSUPPORTED: gpu
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
55

6-
// RUN: %clangxx -fsycl -fsycl-device-lib-jit-link %s -o %t.out
7-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
8-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
6+
// RUN: %{build} -fsycl-device-lib-jit-link -o %t.out
7+
// RUN: %{run} %t.out
98

109
#include "math_utils.hpp"
1110
#include <cmath>

sycl/test-e2e/DeviceLib/cmath_test.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
22

33
// UNSUPPORTED: hip
4-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fno-builtin %{mathflags} %s -o %t.out
4+
// RUN: %{build} -fno-builtin %{mathflags} -o %t.out
55
// RUN: %CPU_RUN_PLACEHOLDER %t.out
66
// RUN: %GPU_RUN_PLACEHOLDER %t.out
77
// RUN: %ACC_RUN_PLACEHOLDER %t.out
88

9-
// RUN: %clangxx -fsycl -fno-builtin -fsycl-device-lib-jit-link %{mathflags} %s -o %t.out
9+
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link %{mathflags} -o %t.out
1010
// RUN: %CPU_RUN_PLACEHOLDER %t.out
1111
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1212

sycl/test-e2e/DeviceLib/complex-fpga.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// REQUIRES: opencl-aot, accelerator
1010

1111
// RUN: %clangxx -fsycl -fsycl-targets=spir64_fpga %S/std_complex_math_test.cpp -o %t.out
12-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
12+
// RUN: %{run} %t.out
1313

1414
// RUN: %clangxx -fsycl -fintelfpga %S/std_complex_math_test.cpp -o %t.out
15-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
15+
// RUN: %{run} %t.out

sycl/test-e2e/DeviceLib/imf_bfloat16_integeral_convesions.cpp

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
// RUN: %clangxx -fsycl %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
4-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1+
// RUN: %{build} -o %t.out
2+
// RUN: %{run} %t.out
53

6-
// RUN: %clangxx -fsycl -fno-builtin -fsycl-device-lib-jit-link %s -o %t.out
7-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
8-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
9-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4+
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t.out
5+
// RUN: %{run} %t.out
106
//
117
// UNSUPPORTED: cuda || hip
128

sycl/test-e2e/DeviceLib/imf_double2bfloat16.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
// REQUIRES: gpu
12
// REQUIRES: aspect-fp64
2-
// RUN: %clangxx -fsycl %s -o %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
45

5-
// RUN: %clangxx -fsycl -fno-builtin -fsycl-device-lib-jit-link %s -o %t1.out
6-
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
6+
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t1.out
7+
// RUN: %{run} %t1.out
78
//
89
// UNSUPPORTED: cuda || hip
910

sycl/test-e2e/DeviceLib/imf_double2half.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
// REQUIRES: gpu
12
// REQUIRES: aspect-fp64, aspect-fp16
2-
// RUN: %clangxx -fsycl %s -o %t.out
3-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %{build} -o %t.out
4+
// RUN: %{run} %t.out
45

5-
// RUN: %clangxx -fsycl -fno-builtin -fsycl-device-lib-jit-link %s -o %t.out
6-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
6+
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t.out
7+
// RUN: %{run} %t.out
78
//
89
// UNSUPPORTED: cuda || hip
910

sycl/test-e2e/DeviceLib/imf_float2bfloat16.cpp

+4-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1-
// RUN: %clangxx -fsycl %s -o %t.out
2-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
4-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1+
// RUN: %{build} -o %t.out
2+
// RUN: %{run} %t.out
53

6-
// RUN: %clangxx -fsycl -fno-builtin -fsycl-device-lib-jit-link %s -o %t.out
7-
// RUN: %CPU_RUN_PLACEHOLDER %t.out
8-
// RUN: %ACC_RUN_PLACEHOLDER %t.out
9-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4+
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t.out
5+
// RUN: %{run} %t.out
106
//
117
// UNSUPPORTED: cuda || hip
128

sycl/test-e2e/DeviceLib/imf_fp16_trivial_test.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
// REQUIRES: gpu
12
// REQUIRES: aspect-fp16
23
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
3-
// RUN: %clangxx -fsycl %{mathflags} %s -o %t.out
4-
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4+
// RUN: %{build} %{mathflags} -o %t.out
5+
// RUN: %{run} %t.out
56

67
// UNSUPPORTED: cuda || hip
78

0 commit comments

Comments
 (0)