-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Add 2 queue constructors accepting sycl device argument and context #1080
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
Conversation
10265c4
to
2200fb2
Compare
assigned @bader as main reviewer. please approve |
If KhronosGroup/SYCL-Docs#71 goes in, we don't need macro guards. Thanks Ruyman for linking the issue. |
@@ -116,6 +116,14 @@ KernelProgramCache &context_impl::getKernelProgramCache() const { | |||
return MKernelProgramCache; | |||
} | |||
|
|||
bool | |||
context_impl::hasDevice(std::shared_ptr<detail::device_impl> Device) const { | |||
for (auto D : MDevices) |
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.
This looks like an STL algorithm. OK, not very compelling while we do not have yet the C++20 syntax here...
2200fb2
to
6bbb707
Compare
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. Minor change is required.
6bbb707
to
f5c85c6
Compare
I updated the patch again - removed the guarding macro from queue.hpp and from LIT test because those 2 constructors have been added to SYCL 1.2.1 recently. |
…uments Signed-off-by: Klochkov <[email protected]> Signed-off-by: Vyacheslav N Klochkov <[email protected]>
5fb1dfa
to
2488236
Compare
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: Klochkov [email protected]