Skip to content

Commit d708c62

Browse files
[SYCL][E2E] Use fine-grained includes in Graph/* tests (#13846)
1 parent f05c1c8 commit d708c62

24 files changed

+52
-1
lines changed

sycl/test-e2e/Graph/Inputs/host_task.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include "../graph_common.hpp"
44

5+
#include <sycl/detail/host_task_impl.hpp>
6+
57
int main() {
68
queue Queue{};
79

sycl/test-e2e/Graph/Inputs/host_task2.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include "../graph_common.hpp"
44

5+
#include <sycl/detail/host_task_impl.hpp>
6+
57
int main() {
68
queue Queue{};
79

sycl/test-e2e/Graph/Inputs/host_task2_multiple_roots.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
#include "../graph_common.hpp"
55

6+
#include <sycl/detail/host_task_impl.hpp>
7+
68
int main() {
79
queue Queue{};
810

sycl/test-e2e/Graph/Inputs/host_task_last.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include "../graph_common.hpp"
44

5+
#include <sycl/detail/host_task_impl.hpp>
6+
57
int main() {
68
queue Queue{};
79

sycl/test-e2e/Graph/Inputs/host_task_multiple_deps.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
#include "../graph_common.hpp"
55

6+
#include <sycl/detail/host_task_impl.hpp>
7+
68
int main() {
79
queue Queue{};
810

sycl/test-e2e/Graph/Inputs/host_task_multiple_roots.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
#include "../graph_common.hpp"
55

6+
#include <sycl/detail/host_task_impl.hpp>
7+
68
int main() {
79
queue Queue{};
810

sycl/test-e2e/Graph/Inputs/host_task_single.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include "../graph_common.hpp"
44

5+
#include <sycl/detail/host_task_impl.hpp>
6+
57
int main() {
68
queue Queue{};
79

sycl/test-e2e/Graph/Inputs/host_task_successive.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include "../graph_common.hpp"
44

5+
#include <sycl/detail/host_task_impl.hpp>
6+
57
int main() {
68
queue Queue{};
79

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// SYCL
1010
#include <sycl/ext/oneapi/backend/level_zero.hpp>
1111

12+
#include <sycl/detail/host_task_impl.hpp>
13+
1214
bool is_discrete(const device &Device) {
1315
auto ZeDevice = get_native<backend::ext_oneapi_level_zero>(Device);
1416
ze_device_properties_t ZeDeviceProps;

sycl/test-e2e/Graph/Inputs/spec_constants_handler_api.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
#include "../graph_common.hpp"
88

9+
#include <sycl/specialization_id.hpp>
10+
911
constexpr sycl::specialization_id<int> IntId;
1012
constexpr sycl::specialization_id<int> IntId2(2);
1113
constexpr sycl::specialization_id<float> FloatId(3.14);

sycl/test-e2e/Graph/Inputs/spec_constants_kernel_bundle_api.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
#include "../graph_common.hpp"
88

9+
#include <sycl/specialization_id.hpp>
10+
911
constexpr sycl::specialization_id<int> IntId(2);
1012
constexpr sycl::specialization_id<float> FloatId(3.14f);
1113

sycl/test-e2e/Graph/Profiling/event_profiling_info.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
#include "../graph_common.hpp"
1515

16+
#include <sycl/properties/all_properties.hpp>
17+
1618
#define GRAPH_TESTS_VERBOSE_PRINT 0
1719

1820
#if GRAPH_TESTS_VERBOSE_PRINT

sycl/test-e2e/Graph/RecordReplay/barrier_multi_queue.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
#include "../graph_common.hpp"
1010

11+
#include <sycl/properties/all_properties.hpp>
12+
1113
int main() {
1214
queue Queue1{{sycl::property::queue::in_order()}};
1315
queue Queue2{Queue1.get_context(),

sycl/test-e2e/Graph/RecordReplay/dotp_in_order.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
#include "../graph_common.hpp"
1212

13+
#include <sycl/properties/all_properties.hpp>
14+
1315
int main() {
1416
property_list Properties{property::queue::in_order{}};
1517
queue Queue{Properties};

sycl/test-e2e/Graph/RecordReplay/dotp_in_order_pause.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
#include "../graph_common.hpp"
1212

13+
#include <sycl/properties/all_properties.hpp>
14+
1315
void foo(sycl::queue Queue, size_t N, int *X, int *Y, int *Z) {
1416

1517
auto Graph = Queue.ext_oneapi_get_graph();

sycl/test-e2e/Graph/RecordReplay/dotp_in_order_with_empty_nodes.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
#include "../graph_common.hpp"
1414

15+
#include <sycl/properties/all_properties.hpp>
16+
1517
int main() {
1618
property_list Properties{property::queue::in_order{}};
1719
queue Queue{Properties};

sycl/test-e2e/Graph/RecordReplay/dotp_multiple_queues.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
#include "../graph_common.hpp"
1212

13+
#include <sycl/properties/all_properties.hpp>
14+
1315
int main() {
1416
property_list Properties{property::queue::in_order{}};
1517
queue QueueA{Properties};

sycl/test-e2e/Graph/RecordReplay/host_task_in_order.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212

1313
#include "../graph_common.hpp"
1414

15+
#include <sycl/detail/host_task_impl.hpp>
16+
#include <sycl/properties/all_properties.hpp>
17+
1518
int main() {
1619
queue Queue{property::queue::in_order{}};
1720

sycl/test-e2e/Graph/RecordReplay/in_order_queue_with_host_managed_dependencies.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
#include "../graph_common.hpp"
1010

11+
#include <sycl/detail/host_task_impl.hpp>
12+
#include <sycl/properties/all_properties.hpp>
13+
1114
int main() {
1215
using T = int;
1316

sycl/test-e2e/Graph/RecordReplay/in_order_queue_with_host_managed_dependencies_memcpy.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
#include "../graph_common.hpp"
1010

11+
#include <sycl/detail/host_task_impl.hpp>
12+
#include <sycl/properties/all_properties.hpp>
13+
1114
int main() {
1215
using T = int;
1316

sycl/test-e2e/Graph/RecordReplay/in_order_queue_with_host_managed_dependencies_memset.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
#include "../graph_common.hpp"
1010

11+
#include <sycl/detail/host_task_impl.hpp>
12+
#include <sycl/properties/all_properties.hpp>
13+
1114
int main() {
1215
using T = int;
1316

sycl/test-e2e/Graph/RecordReplay/sub_graph_in_order.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
#include "../graph_common.hpp"
1212

13+
#include <sycl/properties/all_properties.hpp>
14+
1315
int main() {
1416
property_list Properties{property::queue::in_order{}};
1517
queue Queue{Properties};

sycl/test-e2e/Graph/RecordReplay/usm_copy_in_order.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
#include "../graph_common.hpp"
1515

16+
#include <sycl/properties/all_properties.hpp>
17+
1618
int main() {
1719
property_list Properties{property::queue::in_order{}};
1820
queue Queue{Properties};

sycl/test-e2e/Graph/graph_common.hpp

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

34
#include <sycl/ext/oneapi/experimental/graph.hpp>
45

0 commit comments

Comments
 (0)