Skip to content
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][XRT][Vitis] Fix some failing tests + improve device detection of xrt_pi #185

Merged
merged 2 commits into from
Jun 4, 2022

Conversation

Ralender
Copy link
Contributor

No description provided.

@Ralender Ralender requested a review from keryell May 26, 2022 19:52
@keryell keryell changed the title [SYCL][XRT][Vitis] Fix some failling tests + improve device detection of xrt_pi [SYCL][XRT][Vitis] Fix some failing tests + improve device detection of xrt_pi May 27, 2022
Copy link
Member

@keryell keryell left a comment

Choose a reason for hiding this comment

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

Thanks.
You can also fix the type in the commit message.

@@ -339,7 +339,9 @@ struct _pi_device

private:
native_type xrtDevice_;
ref_counted_ref<_pi_platform> platform_;
/// _pi_platform hold a counting reference onto all its _pi_device so we do
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
/// _pi_platform hold a counting reference onto all its _pi_device so we do
/// _pi_platform holds a counting reference onto all its _pi_device so we do

/// _pi_device hold a counting reference onto _pi_platform so we do not keep
/// counting reference on devices to prevent circular dependency.
std::vector<_pi_device*> devices_;
std::vector<ref_counted_ref<_pi_device>> devices_;
Copy link
Member

Choose a reason for hiding this comment

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

I guess you need to update the comment accordingly.

@Ralender
Copy link
Contributor Author

Ralender commented Jun 1, 2022

do not merge yet I started merging from upstream and this will be rebased on the merge

Copy link
Member

@keryell keryell left a comment

Choose a reason for hiding this comment

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

Looks good except the typo in the commit message: faillingfailling.
But since you have to rebase this, you can edit the message at the same time.

@Ralender Ralender mentioned this pull request Jun 2, 2022
Copy link
Member

@keryell keryell left a comment

Choose a reason for hiding this comment

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

Thanks!

@keryell keryell merged commit 4de2a59 into triSYCL:sycl/unified/next Jun 4, 2022
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