Skip to content

[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

Merged
merged 1 commit into from
Feb 13, 2020

Conversation

v-klochkov
Copy link
Contributor

Signed-off-by: Klochkov [email protected]

@v-klochkov v-klochkov requested review from bader and mkinsner January 30, 2020 20:59
@v-klochkov v-klochkov force-pushed the public_vklochkov_queue_two_ctors branch from 10265c4 to 2200fb2 Compare February 4, 2020 19:33
@olegmaslovatintel
Copy link

assigned @bader as main reviewer. please approve

@bader
Copy link
Contributor

bader commented Feb 7, 2020

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)
Copy link
Contributor

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...

@v-klochkov v-klochkov force-pushed the public_vklochkov_queue_two_ctors branch from 2200fb2 to 6bbb707 Compare February 9, 2020 00:20
bader
bader previously requested changes Feb 11, 2020
Copy link
Contributor

@bader bader left a 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.

@v-klochkov v-klochkov force-pushed the public_vklochkov_queue_two_ctors branch from 6bbb707 to f5c85c6 Compare February 11, 2020 17:34
@v-klochkov
Copy link
Contributor Author

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.
@bader - please re-review.

@v-klochkov v-klochkov requested a review from bader February 11, 2020 17:37
…uments

Signed-off-by: Klochkov <[email protected]>
Signed-off-by: Vyacheslav N Klochkov <[email protected]>
@v-klochkov v-klochkov force-pushed the public_vklochkov_queue_two_ctors branch from 5fb1dfa to 2488236 Compare February 13, 2020 01:04
@v-klochkov v-klochkov requested a review from bader February 13, 2020 01:06
@bader bader requested a review from alexbatashev February 13, 2020 08:21
Copy link
Contributor

@alexbatashev alexbatashev left a comment

Choose a reason for hiding this comment

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

LGTM

@bader bader merged commit c81c1c5 into intel:sycl Feb 13, 2020
@v-klochkov v-klochkov deleted the public_vklochkov_queue_two_ctors branch February 13, 2020 17:04
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.

6 participants