Skip to content

[NFC][SYCL][Graph] Prepare for getSyclObjImpl to return raw ref #19224

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 3 commits into from
Jul 1, 2025

Conversation

aelovikov-intel
Copy link
Contributor

@aelovikov-intel aelovikov-intel commented Jun 30, 2025

I'm planning to change getSyclObjImpl to return a raw reference in a later patch, uploading a bunch of PRs in preparation to that to make the subsequent review easier.

I also did s/sycl::detail::getSyclObjImpl/getSyclObjImpl/g here to increase readability and to make it simpler to perform the future patch by simple sed (and avoid multiline changes).

This PR originated in unittests/Extensions/CommandGraph, but I had to modify isSimilar and hasSimilarStructure in the implementation itself too.

I'm planning to change `getSyclObjImpl` to return a raw reference in a
later patch, uploading a bunch of PRs in preparation to that to make the
subsequent review easier.
@aelovikov-intel aelovikov-intel requested a review from Bensuo July 1, 2025 15:14
Comment on lines -889 to -890
} else if (GraphImpl->getEventForNode(RootNode),
sycl::detail::getSyclObjImpl(Node1)) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This , doesn't make much sense to me, I assume it was supposed to be == (implemented on the right now). @intel/sycl-graphs-reviewers , @Bensuo can you confirm?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes I think it is supposed to be == , guessing it was copied from an ASSERT_EQ or something and slipped through. If there any issues with the change we can disable the test and I'll make an internal issue to look into fixing it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Local build passed with my change, so I hope CI will work this time. Thanks for a quick reply!

@aelovikov-intel aelovikov-intel merged commit 3b208cc into intel:sycl Jul 1, 2025
25 checks passed
@aelovikov-intel aelovikov-intel deleted the sycl-obj-graph branch July 1, 2025 23:02
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.

2 participants