-
Notifications
You must be signed in to change notification settings - Fork 766
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] removing std::memcpy from sycl headers #11436
[SYCL] removing std::memcpy from sycl headers #11436
Conversation
…l done in PR 1117.
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.
Looks good!
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
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.
As @YuriPlyakhin correctly points out, the use of std::memcpy
in sycl/include/syclcompat/memory.hpp
is host code copying host memory, so I think that should remain as std::memcpy
.
@cperkinsintel , Failed Tests (1): Could you please take a look? |
I think this might be causing the |
See #1117 and #11436 for the context. In this mode, `std::memcpy` cannot be used in device code, but its usage occasionally leaks into our code base. I think testing the configuration in CI is the easiest way to prevent that with at least some confidence. Another option would be to modify FE to report any usage of `std::memcpy` in device code only, but I don't know if that's even possible.
removing std::memcpy from sycl headers, continuation of work originally done in #1117.