Skip to content

Commit af7a961

Browse files
[SYCL][E2E] Switch some of SpecConstants/* tests to use <sycl/detail/core.hpp> (#13132)
1 parent cceb98f commit af7a961

13 files changed

+40
-13
lines changed

sycl/test-e2e/SpecConstants/2020/handler-api.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515

1616
#include <cstdlib>
1717
#include <iostream>
18-
#include <sycl/sycl.hpp>
18+
#include <sycl/detail/core.hpp>
19+
20+
#include <sycl/specialization_id.hpp>
1921

2022
#include "common.hpp"
2123

sycl/test-e2e/SpecConstants/2020/host_apis.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// RUN: %{build} -o %t.out -fsycl-dead-args-optimization
22
// RUN: %{run} %t.out
33

4-
#include <sycl/sycl.hpp>
4+
#include <sycl/detail/core.hpp>
5+
6+
#include <sycl/specialization_id.hpp>
57

68
#include <cmath>
79

sycl/test-e2e/SpecConstants/2020/image_selection.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@
4242
// RUN: env SYCL_PI_TRACE=-1 %{run} %t3.out | FileCheck --match-full-lines --check-prefix=CHECK-DEFAULT-BACK-TO-DEFAULT %s
4343
// clang-format on
4444

45-
#include <sycl/sycl.hpp>
45+
#include <sycl/detail/core.hpp>
46+
47+
#include <sycl/specialization_id.hpp>
48+
#include <sycl/usm.hpp>
4649

4750
constexpr sycl::specialization_id<int> int_id(3);
4851

sycl/test-e2e/SpecConstants/2020/kernel-bundle-api.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515

1616
#include <cstdlib>
1717
#include <iostream>
18-
#include <sycl/sycl.hpp>
18+
#include <sycl/detail/core.hpp>
19+
20+
#include <sycl/specialization_id.hpp>
1921

2022
#include "common.hpp"
2123

sycl/test-e2e/SpecConstants/2020/kernel_lambda_with_kernel_handler_arg.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
// and parallel_for_work_group to verify that this code compiles and runs
77
// correctly with user's lambda with and without sycl::kernel_handler argument
88

9-
#include <sycl/sycl.hpp>
9+
#include <sycl/detail/core.hpp>
10+
11+
#include <sycl/specialization_id.hpp>
1012

1113
int main() {
1214
sycl::queue q;

sycl/test-e2e/SpecConstants/2020/native_specialization_constant.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64,spir64_gen -Xsycl-target-backend=spir64_gen %gpu_aot_target_opts %s -o %t.out
1212
// RUN: %{run} %t.out
1313

14-
#include <sycl/sycl.hpp>
14+
#include <sycl/detail/core.hpp>
15+
16+
#include <sycl/specialization_id.hpp>
1517

1618
constexpr sycl::specialization_id<float> float_id(3.14f);
1719

sycl/test-e2e/SpecConstants/2020/nested-non-packed-struct.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
33
//
4-
#include <sycl/sycl.hpp>
4+
#include <sycl/detail/core.hpp>
5+
6+
#include <sycl/specialization_id.hpp>
57

68
#include <iostream>
79

sycl/test-e2e/SpecConstants/2020/non-packed-struct-2.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
33
//
4-
#include <sycl/sycl.hpp>
4+
#include <sycl/detail/core.hpp>
5+
6+
#include <sycl/specialization_id.hpp>
57

68
#include <iostream>
79

sycl/test-e2e/SpecConstants/2020/non-packed-struct.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
33
//
4-
#include <sycl/sycl.hpp>
4+
#include <sycl/detail/core.hpp>
5+
6+
#include <sycl/specialization_id.hpp>
57

68
struct user_defined_type {
79
float a;

sycl/test-e2e/SpecConstants/2020/non_native/Inputs/common.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#include <sycl/sycl.hpp>
1+
#include <sycl/detail/core.hpp>
2+
3+
#include <sycl/specialization_id.hpp>
24

35
#include <cmath>
46

sycl/test-e2e/SpecConstants/2020/non_native/SpecConstBuffer.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
// RUN: -fsycl-dead-args-optimization
55
// RUN: env SYCL_PI_TRACE=-1 %{run} %t.out | FileCheck %s
66

7-
#include <sycl/sycl.hpp>
7+
#include <sycl/detail/core.hpp>
8+
9+
#include <sycl/specialization_id.hpp>
810

911
const static sycl::specialization_id<int> SpecConst{42};
1012

sycl/test-e2e/SpecConstants/2020/non_native/aot_w_kernel_handler_wo_spec_consts.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
// kernel lambdas containing kernel_handler arguments and w/o usage of
77
// specialization constants in AOT mode
88

9-
#include <sycl/sycl.hpp>
9+
#include <sycl/detail/core.hpp>
10+
11+
#include <sycl/specialization_id.hpp>
1012

1113
int main() {
1214
sycl::queue q;

sycl/test-e2e/SpecConstants/2020/vector-convolution-demo.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
// constants of the SYCL 2020 specification:
1010
// https://www.khronos.org/registry/SYCL/specs/sycl-2020/html/sycl-2020.html#_example_usage
1111

12-
#include <sycl/sycl.hpp>
12+
#include <sycl/detail/core.hpp>
13+
14+
#include <sycl/specialization_id.hpp>
1315

1416
#include <array>
1517
#include <cmath>

0 commit comments

Comments
 (0)