Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Fix tests for future namespace #493

Merged
merged 6 commits into from
Oct 15, 2021
Merged

[SYCL] Fix tests for future namespace #493

merged 6 commits into from
Oct 15, 2021

Conversation

denis-kabanov
Copy link

@denis-kabanov denis-kabanov commented Oct 1, 2021

Remove #include of "CL/sycl/access/access.hpp" and "CL/sycl/access/access.hpp" for several reasons.
1)The new approach of namespaces (PR #4460) relies on the fact that users include high level header(e.g. CL/sycl.hpp or sycl/sycl.hpp) to resolve final namespaces, so including internal headers directly(especially before high level headers) breaks this approach.
2)The spec doesn't specify names of internal headers, so it's illegal and non-portable to include any other header that high level one.

@denis-kabanov denis-kabanov marked this pull request as ready for review October 13, 2021 14:30
@denis-kabanov denis-kabanov requested a review from a team as a code owner October 13, 2021 14:30
@romanovvlad romanovvlad merged commit e8eca71 into intel:intel Oct 15, 2021
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
Remove #include of "CL/sycl/access/access.hpp" and
"CL/sycl/access/access.hpp" for several reasons:
1)The new approach of namespaces (PR intel#4460) relies on the fact
   that users include high level header(e.g. CL/sycl.hpp or
   sycl/sycl.hpp) to resolve final namespaces, so including internal
   headers directly(especially before high level headers) breaks this
   approach.
2)The spec doesn't specify names of internal headers, so it's illegal
   and non-portable to include any other header that high level ones.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants