-
Notifications
You must be signed in to change notification settings - Fork 798
[NFC][SYCL][Graph] Add iterator_range::to<Container>()
helper
#19431
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
415c599
to
d5d008f
Compare
d5d008f
to
3a65af1
Compare
sycl/source/detail/helpers.hpp
Outdated
template <typename Container> | ||
std::enable_if_t< | ||
check_type_in_v<Container, std::vector<sycl_type>, | ||
std::queue<value_type *>, std::vector<value_type *>>, |
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.
std::vector<value_type *>
isn't used in this PR, but I have uses locally for my WIP patches related to device_impl
raw ptrs/refs.
3a65af1
to
d63bb46
Compare
node_type node::get_type() const { return impl->MNodeType; } | ||
|
||
std::vector<node> node::get_predecessors() const { | ||
return detail::createNodesFromImpls(impl->MPredecessors); | ||
return impl->predecessors().to<std::vector<node>>(); |
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.
nit: Looks like this code path hits a gap in our tests, that we should close.
We only check for the size of the returned container, but never for its content ...
can do as a follow up. Unrelated to this PR.
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
No description provided.