-
Notifications
You must be signed in to change notification settings - Fork 4
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][Graph] Implementation of whole graph update #366
Conversation
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.
A few comments, but looking good.
I think we could also have tests for the following cases:
- Test update using a graph with a nested sub-graph in it.
- Test update in the case where there's no update to the inputs with the new input graph to make sure it's not an error, as we've not specified any error.
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, just some minor comments!
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, nice work
sycl/source/detail/graph_impl.cpp
Outdated
throw sycl::exception(sycl::make_error_code(errc::invalid), | ||
"Mismatch found in the number of nodes. The graphs " | ||
"must have a matching topology."); | ||
} else { | ||
for (uint32_t i = 0; i < MNodeStorage.size(); ++i) { | ||
if (MNodeStorage[i]->MSuccessors.size() != | ||
GraphImpl->MNodeStorage[i]->MSuccessors.size() || | ||
MNodeStorage[i]->MPredecessors.size() != | ||
GraphImpl->MNodeStorage[i]->MPredecessors.size()) { | ||
throw sycl::exception(sycl::make_error_code(errc::invalid), | ||
"Mismatch found in the number of edges. The " | ||
"graphs must have a matching topology."); |
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.
Same nit as before I think these error messages could be more explicit that this is the update operation.
Upstream PR: https://github.com/intel/llvm/pull/13220/files |
No description provided.