Skip to content

Commit 32e9eda

Browse files
[SYCL] Remove host run and dependencies from SYCL/DeviceLib tests (intel/llvm-test-suite#1203)
This commit removes the host run and any assumptions and operations related to the host device from the tests in SYCL/DeviceLib. Signed-off-by: Larsen, Steffen <[email protected]> Co-authored-by: Sachkov, Alexey <[email protected]>
1 parent 407c2db commit 32e9eda

27 files changed

+2
-37
lines changed

SYCL/DeviceLib/ITTAnnotations/atomic.cpp

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

33
// RUN: %clangxx -fsycl -fsycl-instrument-device-code %s -o %t.out \
44
// RUN: -fsycl-targets=%sycl_triple
5-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
65
// RUN: %CPU_RUN_PLACEHOLDER %t.out
76
// RUN: %GPU_RUN_PLACEHOLDER %t.out
87
// RUN: %ACC_RUN_PLACEHOLDER %t.out

SYCL/DeviceLib/built-ins/ext_native_math.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fsycl-device-code-split=per_kernel %s -o %t.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t.out

SYCL/DeviceLib/built-ins/fast-math-flag.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -ffast-math -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t.out

SYCL/DeviceLib/built-ins/nan.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
22
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -D HALF_IS_SUPPORTED %s -o %t_gpu.out
3-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
43
// RUN: %CPU_RUN_PLACEHOLDER %t.out
54
// RUN: %GPU_RUN_PLACEHOLDER %t_gpu.out
65
// RUN: %ACC_RUN_PLACEHOLDER %t.out

SYCL/DeviceLib/built-ins/printf.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// CUDA doesn't support vector format specifiers ("%v").
44
//
55
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
6-
// RUN: %HOST_RUN_PLACEHOLDER %t.out %HOST_CHECK_PLACEHOLDER
76
// RUN: %CPU_RUN_PLACEHOLDER %t.out %CPU_CHECK_PLACEHOLDER
87
// RUN: %GPU_RUN_PLACEHOLDER %t.out %GPU_CHECK_PLACEHOLDER
98
// RUN: %ACC_RUN_PLACEHOLDER %t.out %ACC_CHECK_PLACEHOLDER

SYCL/DeviceLib/built-ins/scalar_common.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t.out

SYCL/DeviceLib/built-ins/scalar_geometric.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t.out

SYCL/DeviceLib/built-ins/scalar_integer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t.out

SYCL/DeviceLib/built-ins/scalar_math.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t.out

SYCL/DeviceLib/built-ins/scalar_math_2.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t.out

SYCL/DeviceLib/built-ins/scalar_relational.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t.out

SYCL/DeviceLib/built-ins/vector_common.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t.out

SYCL/DeviceLib/built-ins/vector_geometric.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t.out

SYCL/DeviceLib/built-ins/vector_integer.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t.out

SYCL/DeviceLib/built-ins/vector_math.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %GPU_RUN_PLACEHOLDER %t.out
54
// RUN: %ACC_RUN_PLACEHOLDER %t.out

SYCL/DeviceLib/built-ins/vector_relational.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// FIXME unsupported on windows (opencl and level-zero) until fix of libdevice
22
// UNSUPPORTED: windows && (opencl || level_zero)
33
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
54
// RUN: %CPU_RUN_PLACEHOLDER %t.out
65
// RUN: %GPU_RUN_PLACEHOLDER %t.out
76
// RUN: %ACC_RUN_PLACEHOLDER %t.out

SYCL/DeviceLib/cmath_fp64_test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
// RUN: %clangxx -fsycl %s -o %t.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %ACC_RUN_PLACEHOLDER %t.out
54

65
// RUN: %clangxx -fsycl -fsycl-device-lib-jit-link %s -o %t.out
7-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
86
// RUN: %CPU_RUN_PLACEHOLDER %t.out
97
// RUN: %ACC_RUN_PLACEHOLDER %t.out
108

SYCL/DeviceLib/cmath_test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
// UNSUPPORTED: hip
22
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fno-builtin %s -o %t.out
3-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
43
// RUN: %CPU_RUN_PLACEHOLDER %t.out
54
// RUN: %GPU_RUN_PLACEHOLDER %t.out
65
// RUN: %ACC_RUN_PLACEHOLDER %t.out
76

87
// RUN: %clangxx -fsycl -fno-builtin -fsycl-device-lib-jit-link %s -o %t.out
9-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
108
// RUN: %CPU_RUN_PLACEHOLDER %t.out
119
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1210

SYCL/DeviceLib/imf_simd_emulate_test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
// RUN: %clangxx -fsycl %s -o %t.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %ACC_RUN_PLACEHOLDER %t.out
54
// RUN: %GPU_RUN_PLACEHOLDER %t.out
65

76
// RUN: %clangxx -fsycl -fno-builtin -fsycl-device-lib-jit-link %s -o %t.out
8-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
97
// RUN: %CPU_RUN_PLACEHOLDER %t.out
108
// RUN: %ACC_RUN_PLACEHOLDER %t.out
119
// RUN: %GPU_RUN_PLACEHOLDER %t.out

SYCL/DeviceLib/math_fp64_test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
// UNSUPPORTED: hip
22
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
3-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
43
// RUN: %CPU_RUN_PLACEHOLDER %t.out
54
// RUN: %GPU_RUN_PLACEHOLDER %t.out
65
// RUN: %ACC_RUN_PLACEHOLDER %t.out
76

87
// RUN: %clangxx -fsycl -fsycl-device-lib-jit-link %s -o %t.out
9-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
108
// RUN: %CPU_RUN_PLACEHOLDER %t.out
119
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1210

SYCL/DeviceLib/math_fp64_windows_test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
// UNSUPPORTED: windows
22
// Disabled on windows due to bug VS 2019 missing math builtins
33

4-
// REQUIRES: (cpu || host || accelerator) && windows
4+
// REQUIRES: (cpu || accelerator) && windows
55
// RUN: %clangxx -fsycl -c %s -o %t.o
66
// RUN: %clangxx -fsycl %t.o %sycl_libs_dir/../bin/libsycl-cmath-fp64.o -o %t.out
7-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
87
// RUN: %CPU_RUN_PLACEHOLDER %t.out
98
// RUN: %ACC_RUN_PLACEHOLDER %t.out
109
#include "math_utils.hpp"

SYCL/DeviceLib/math_override_test.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// UNSUPPORTED: windows
22
// RUN: %clangxx -fsycl %s -o %t.out -fno-builtin
3-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
43
#include <iostream>
54
#include <math.h>
65
#include <sycl/sycl.hpp>

SYCL/DeviceLib/math_test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
// UNSUPPORTED: hip
22
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
3-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
43
// RUN: %CPU_RUN_PLACEHOLDER %t.out
54
// RUN: %GPU_RUN_PLACEHOLDER %t.out
65
// RUN: %ACC_RUN_PLACEHOLDER %t.out
76

87
// RUN: %clangxx -fsycl -fsycl-device-lib-jit-link %s -o %t.out
9-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
108
// RUN: %CPU_RUN_PLACEHOLDER %t.out
119
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1210

SYCL/DeviceLib/math_windows_test.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
// UNSUPPORTED: windows
22
// Disabled on windows due to bug VS 2019 missing math builtins
33

4-
// REQUIRES: (accelerator || cpu || host) && windows
4+
// REQUIRES: (accelerator || cpu) && windows
55
// RUN: %clangxx -fsycl -c %s -o %t.o
66
// RUN: %clangxx -fsycl %t.o %sycl_libs_dir/../bin/libsycl-cmath.o -o %t.out
7-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
87
// RUN: %CPU_RUN_PLACEHOLDER %t.out
98
// RUN: %ACC_RUN_PLACEHOLDER %t.out
109
#include "math_utils.hpp"

SYCL/DeviceLib/std_complex_math_fp64_test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
// RUN: %clangxx -fsycl %s -o %t.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %ACC_RUN_PLACEHOLDER %t.out
54

65
// RUN: %clangxx -fsycl -fsycl-device-lib-jit-link %s -o %t.out
7-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
86
// RUN: %CPU_RUN_PLACEHOLDER %t.out
97
// RUN: %ACC_RUN_PLACEHOLDER %t.out
108

SYCL/DeviceLib/std_complex_math_test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
// RUN: %clangxx -fsycl %s -o %t.out
2-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
32
// RUN: %CPU_RUN_PLACEHOLDER %t.out
43
// RUN: %ACC_RUN_PLACEHOLDER %t.out
54

65
// RUN: %clangxx -fsycl -fsycl-device-lib-jit-link %s -o %t.out
7-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
86
// RUN: %CPU_RUN_PLACEHOLDER %t.out
97
// RUN: %ACC_RUN_PLACEHOLDER %t.out
108

SYCL/DeviceLib/string_test.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
// UNSUPPORTED: hip
22
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fno-builtin %s -o %t.out
3-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
43
// RUN: %CPU_RUN_PLACEHOLDER %t.out
54
// RUN: %GPU_RUN_PLACEHOLDER %t.out
65
// RUN: %ACC_RUN_PLACEHOLDER %t.out
76

87
// RUN: %clangxx -fsycl -fno-builtin -fsycl-device-lib-jit-link %s -o %t.out
9-
// RUN: %HOST_RUN_PLACEHOLDER %t.out
108
// RUN: %CPU_RUN_PLACEHOLDER %t.out
119
// RUN: %ACC_RUN_PLACEHOLDER %t.out
1210

0 commit comments

Comments
 (0)