Skip to content

Commit 341d073

Browse files
authored
[SYCL] Do not use entire sycl/sycl.hpp in small tests (#17027)
Do not include entire `<sycl/sycl.hpp>` in `sycl/test/extensions/DeviceImageBackendContent/negative_test.cpp` Use more fine-grained includes instead. For E2E tests, this is a matter of performance, but in this case including all the SYCL headers can go as far as causing compilation issues in environments that require `c++20` but whose `gcc` does not fully implement `c++20` features.
1 parent ae09897 commit 341d073

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/test/extensions/DeviceImageBackendContent/negative_test.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %clang -fsycl -fsyntax-only -std=c++20 -Xclang -verify -Xclang -verify-ignore-unexpected=note,warning %s
22

3-
#include <sycl/sycl.hpp>
3+
#include <sycl/detail/core.hpp>
4+
#include <sycl/kernel_bundle.hpp>
45

56
class kernel;
67

0 commit comments

Comments
 (0)