Skip to content

Commit 364ab7f

Browse files
committed
Use specific includes instead of the global compat and sycl ones
1 parent 31fe4d5 commit 364ab7f

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

sycl/test-e2e/syclcompat/helloworld.cpp

+10-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,16 @@
2323
// RUN: %{build} -o %t.out
2424
// RUN: %{run} %t.out
2525

26-
#include <sycl/sycl.hpp>
27-
#include <syclcompat/syclcompat.hpp>
26+
#include <sycl/detail/core.hpp>
27+
28+
// The example uses specific headers but the user can
29+
// simple include <syclcompat/syclcompat.hpp> to get all the
30+
// functionality with a single header
31+
32+
#include <syclcompat/device.hpp>
33+
#include <syclcompat/id_query.hpp>
34+
#include <syclcompat/launch.hpp>
35+
#include <syclcompat/memory.hpp>
2836

2937
#include <cstdlib>
3038
#include <iostream>

0 commit comments

Comments
 (0)