Skip to content

Commit daef86a

Browse files
[SYCL][E2E] Use fine-grained includes in [Bfloat16|DeviceCodeSplit|Printf]/* tests (#13852)
1 parent 199eb01 commit daef86a

File tree

13 files changed

+24
-13
lines changed

13 files changed

+24
-13
lines changed

sycl/test-e2e/BFloat16/bfloat16_builtins.hpp

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

3-
#include <sycl/sycl.hpp>
3+
#include <sycl/detail/core.hpp>
4+
#include <sycl/ext/oneapi/experimental/bfloat16_math.hpp>
45

56
#include <cmath>
67
#include <vector>

sycl/test-e2e/BFloat16/bfloat16_example.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64,spir64_gen -Xsycl-target-backend=spir64_gen "-device pvc" %s -o %t.out
3232
// RUN: %if cpu %{ %{run} %t.out %}
3333

34-
#include <sycl/sycl.hpp>
34+
#include <sycl/detail/core.hpp>
35+
#include <sycl/ext/oneapi/bfloat16.hpp>
3536

3637
using namespace sycl;
3738
using sycl::ext::oneapi::bfloat16;

sycl/test-e2e/BFloat16/bfloat16_type.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <iostream>
2+
#include <sycl/detail/core.hpp>
23
#include <sycl/ext/oneapi/bfloat16.hpp>
3-
#include <sycl/sycl.hpp>
44

55
#include <cmath>
66

sycl/test-e2e/BFloat16/bfloat16_vec.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
// RUN: %if preview-breaking-changes-supported %{ %{build} -fpreview-breaking-changes -o %t2.out %}
1616
// RUN: %if preview-breaking-changes-supported %{ %{run} %t2.out %}
1717

18-
#include <sycl/sycl.hpp>
18+
#include <sycl/detail/core.hpp>
19+
#include <sycl/ext/oneapi/bfloat16.hpp>
20+
#include <sycl/stream.hpp>
1921

2022
constexpr unsigned N =
2123
10; // init plus arithmetic + - * / for vec<1> and vec<2>

sycl/test-e2e/DeviceCodeSplit/Inputs/split-per-source.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include <sycl/sycl.hpp>
1+
#include <sycl/detail/core.hpp>
22

33
class File1Kern1;
44
class File1Kern2;

sycl/test-e2e/DeviceCodeSplit/grf.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// RUN: env SYCL_PROGRAM_COMPILE_OPTIONS="-g" SYCL_PI_TRACE=-1 %{run} %t.out 2>&1 | FileCheck %s --check-prefixes=CHECK,CHECK-AUTO-WITH-VAR
3030
#include "../helpers.hpp"
3131
#include <iostream>
32-
#include <sycl/sycl.hpp>
32+
#include <sycl/detail/core.hpp>
3333
#ifdef USE_NEW_API
3434
#include <sycl/ext/intel/experimental/grf_size_properties.hpp>
3535
#else

sycl/test-e2e/Printf/char.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
// CHECK: literal strings: s=Hello World!
2222
// CHECK_DISABLED: non-literal strings: s=Hello, World! ls=
2323

24-
#include <sycl/sycl.hpp>
24+
#include <sycl/detail/core.hpp>
25+
#include <sycl/ext/oneapi/experimental/builtins.hpp>
2526

2627
#include <cstring>
2728

sycl/test-e2e/Printf/double.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424

2525
#include <iostream>
2626

27-
#include <sycl/sycl.hpp>
27+
#include <sycl/detail/core.hpp>
28+
#include <sycl/ext/oneapi/experimental/builtins.hpp>
2829

2930
#include "helper.hpp"
3031

sycl/test-e2e/Printf/float.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323

2424
#include <iostream>
2525

26-
#include <sycl/sycl.hpp>
26+
#include <sycl/detail/core.hpp>
27+
#include <sycl/ext/oneapi/experimental/builtins.hpp>
2728

2829
#include "helper.hpp"
2930

sycl/test-e2e/Printf/int.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
// RUN: %{build} -o %t.constant.out -DTEST_CONSTANT_AS
1616
// RUN: %{run} %t.constant.out | FileCheck %s
1717

18-
#include <sycl/sycl.hpp>
18+
#include <sycl/detail/core.hpp>
19+
#include <sycl/ext/oneapi/experimental/builtins.hpp>
1920

2021
#include "helper.hpp"
2122

sycl/test-e2e/Printf/long.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
// RUN: %{build} -o %t.constant.out -DTEST_CONSTANT_AS
1717
// RUN: %{run} %t.constant.out | FileCheck %s
1818

19-
#include <sycl/sycl.hpp>
19+
#include <sycl/detail/core.hpp>
20+
#include <sycl/ext/oneapi/experimental/builtins.hpp>
2021

2122
#include "helper.hpp"
2223

sycl/test-e2e/Printf/mixed-address-space.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
// CHECK: Constant addrspace literal
1515
// CHECK: Generic addrspace literal
1616

17-
#include <sycl/sycl.hpp>
17+
#include <sycl/detail/core.hpp>
18+
#include <sycl/ext/oneapi/experimental/builtins.hpp>
1819

1920
#include "helper.hpp"
2021

sycl/test-e2e/Printf/percent-symbol.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
// CHECK: %c %s %d %i %o %x %X %u
2121
// CHECK-NEXT: %f %F %e %E %a %A %g %G %n %p
2222

23-
#include <sycl/sycl.hpp>
23+
#include <sycl/detail/core.hpp>
24+
#include <sycl/ext/oneapi/experimental/builtins.hpp>
2425

2526
#include <cstring>
2627

0 commit comments

Comments
 (0)