Skip to content

Commit

Permalink
[SYCL] Do not use entire sycl/sycl.hpp in small tests (#17027)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lbushi25 authored Feb 21, 2025
1 parent ae09897 commit 341d073
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// RUN: %clang -fsycl -fsyntax-only -std=c++20 -Xclang -verify -Xclang -verify-ignore-unexpected=note,warning %s

#include <sycl/sycl.hpp>
#include <sycl/detail/core.hpp>
#include <sycl/kernel_bundle.hpp>

class kernel;

Expand Down

0 comments on commit 341d073

Please sign in to comment.