-
Notifications
You must be signed in to change notification settings - Fork 745
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
[NFC][SYCL] Break include's cycle #1770
[NFC][SYCL] Break include's cycle #1770
Conversation
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
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.
LGTM.
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
Overall Looks Good To Me. I'll mark approved (as reduction.hpp owner) after additional fixes for Alexander's comments. |
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
@turinevgeny @romanovvlad any comments from you? |
No, the patch is OK to me. |
After intel#1770 some uses of associateWithHandler have to be guarded by "#ifndef __SYCL_DEVICE_ONLY__" as the accessor's inheritance chain differs between host/device compilation. Put the burden of that into the handler's implementation instead of paying the price at uses.
After #1770 some uses of associateWithHandler have to be guarded by "#ifndef __SYCL_DEVICE_ONLY__" as the accessor's inheritance chain differs between host/device compilation. Put the burden of that into the handler's implementation instead of paying the price at uses.
This changes is required for #1747.
Suppose we add
#include <CL/sycl/accessor.hpp>
ininterop_handle.hpp
. Furthermore we will add#include <CL/sycl/interop_handle.hpp>
toinclude/CL/sycl/handler.hpp
. Then, we will have the following cycle (here->
sayswhich includes
):Also, this patch eliminates use of
reinterpret_cast
(either as it is or C-style) when convertingaccessor
toAccessorBaseHost
at host.