-
Notifications
You must be signed in to change notification settings - Fork 743
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SYCL][Test] Track amount of inter-dependencies between headers #16202
base: sycl
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,27 @@ | ||||||||||||||||||||||||||||||||||
// sycl/sycl.hpp is a very heavy header, because it includes all SYCL feature. | ||||||||||||||||||||||||||||||||||
// | ||||||||||||||||||||||||||||||||||
// In order to be able to split it, we need to make sure that all | ||||||||||||||||||||||||||||||||||
// inter-dependencies between headers are resolved. We already have a set of | ||||||||||||||||||||||||||||||||||
// tests which make sure that every header can be compiled if included alone, | ||||||||||||||||||||||||||||||||||
// but to achieve that, every header can simply include every other header. | ||||||||||||||||||||||||||||||||||
// | ||||||||||||||||||||||||||||||||||
// Considering that the main reason for sycl.hpp splitting is compilation time | ||||||||||||||||||||||||||||||||||
// improvement, it is important that SYCL headers do not include each other | ||||||||||||||||||||||||||||||||||
// unnecessary to make sure that when you include a single specific header, you | ||||||||||||||||||||||||||||||||||
// only get specific functionality and nothing extra. | ||||||||||||||||||||||||||||||||||
// | ||||||||||||||||||||||||||||||||||
// Note that this test ignores "ext" subfolder for now and concentrates on | ||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Following |
||||||||||||||||||||||||||||||||||
// core SYCL functionality for now. | ||||||||||||||||||||||||||||||||||
// | ||||||||||||||||||||||||||||||||||
// REQUIRES: linux | ||||||||||||||||||||||||||||||||||
// | ||||||||||||||||||||||||||||||||||
// RUN: grep -rl "#include <sycl/sub_group.hpp>" %sycl_include/sycl \ | ||||||||||||||||||||||||||||||||||
// RUN: --exclude-dir=*ext* | FileCheck %s --check-prefix=SUB-GROUP | ||||||||||||||||||||||||||||||||||
// SUB-GROUP: sycl/sycl.hpp | ||||||||||||||||||||||||||||||||||
// SUB-GROUP-EMPTY: | ||||||||||||||||||||||||||||||||||
// | ||||||||||||||||||||||||||||||||||
// RUN: grep -rl "#include <sycl/stream.hpp>" %sycl_include/sycl \ | ||||||||||||||||||||||||||||||||||
// RUN: --exclude-dir=*ext* | FileCheck %s --check-prefix=STREAM | ||||||||||||||||||||||||||||||||||
// STREAM: sycl/sycl.hpp | ||||||||||||||||||||||||||||||||||
// STREAM-EMPTY: | ||||||||||||||||||||||||||||||||||
Comment on lines
+18
to
+26
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If I get the idea right, we check that
Suggested change
I guess we can further simplify the command to match all include patterns at once rather than searching one include per grep command. |
||||||||||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.