Skip to content

[SYCL][NFC] Refactor includes in DPC++ headers #10458

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

Merged
merged 7 commits into from
Jul 19, 2023
Merged

Conversation

bader
Copy link
Contributor

@bader bader commented Jul 18, 2023

The main goal of this refactoring is to reduce amount of includes to the context.hpp header.

Two new includes are added:

  1. sycl/include/sycl/detail/impl_utils.hpp is intended to replace sycl/include/sycl/detail/common.hpp when only interopability with "impl" class is needed. common.hpp include is overloaded with a bunch of other functionality.
  2. sycl/include/sycl/async_handler.hpp separates async_handler definiton from exception.hpp.

The main goal of this refactoring is to reduce amount of includes to the
context.hpp header.

Two new includes are added:
1. sycl/include/sycl/detail/impl_utils.hpp is intended to replace
sycl/include/sycl/detail/common.hpp when only interopability with "impl"
class is needed. common.hpp include is overloaded with a bunch of other
functionality.
2. sycl/include/sycl/async_handler.hpp separates async_handler definiton
from exception.hpp.
@bader bader requested review from a team as code owners July 18, 2023 21:47
@bader bader requested a review from aelovikov-intel July 18, 2023 21:47
@bader bader temporarily deployed to aws July 18, 2023 22:24 — with GitHub Actions Inactive
@bader bader temporarily deployed to aws July 19, 2023 00:14 — with GitHub Actions Inactive
@bader bader temporarily deployed to aws July 19, 2023 00:52 — with GitHub Actions Inactive
Copy link
Contributor

@EwanC EwanC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to graph.hpp changes, the suitability of the refactoring as a whole I defer to more knowledgable reviewers

@bader bader temporarily deployed to aws July 19, 2023 21:23 — with GitHub Actions Inactive
@bader bader temporarily deployed to aws July 19, 2023 22:03 — with GitHub Actions Inactive
@bader bader merged commit ad35628 into intel:sycl Jul 19, 2023
@bader bader deleted the includes-3 branch July 19, 2023 22:10
mdtoguchi pushed a commit to mdtoguchi/llvm that referenced this pull request Oct 18, 2023
The main goal of this refactoring is to reduce amount of includes to the
context.hpp header.

Two new includes are added:
1. sycl/include/sycl/detail/impl_utils.hpp is intended to replace
sycl/include/sycl/detail/common.hpp when only interopability with "impl"
class is needed. common.hpp include is overloaded with a bunch of other
functionality.
2. sycl/include/sycl/async_handler.hpp separates async_handler definiton
from exception.hpp.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants