-
Notifications
You must be signed in to change notification settings - Fork 755
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] Do not use handler::addAccessorReq() #16111
[SYCL] Do not use handler::addAccessorReq() #16111
Conversation
Constructor of accessors add them to MRequirements and MAccStorage of the associated handler, so do not add duplicates here if same handler was used during construction.
4ff4a38
to
28711a7
Compare
@intel/llvm-gatekeepers Could you please look at the PR? |
My biggest worry about this patch is that we no longer keep accessors alive in the accessor storage of the command-group handler for many of these paths. Is this safe? Are we confident there are no scenarios that need them alive? I can see the graph copies the storage, @intel/sycl-graphs-reviewers. |
I think this change should be fine for us in general if I'm understanding it correctly. Accessors are by default stored when associated with a handler (either through the ctor taking a handler or We don't currently support reductions in graphs but I don't think this change makes much difference to the challenges of us implementing support for them so it seems fine in that regard also. |
Thanks, @Bensuo! In that case, I forfeit my concerns. Let's roll with it! |
This function might be useful only when an accessor is connected with different
CG that was used during a construction of the accessor. Currently it’s helpful
only in single case of reduction, and in this case the accessor can be connected
to a right CG in the constructor. Modify the use case and remove all calls to
addAccessorReq().