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

Avoid synchronizing freed queues. #247

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Conversation

maleadt
Copy link
Member

@maleadt maleadt commented Oct 4, 2024

No description provided.

Copy link

codecov bot commented Oct 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.03%. Comparing base (5837ca6) to head (3510542).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #247   +/-   ##
=======================================
  Coverage   64.03%   64.03%           
=======================================
  Files           9        9           
  Lines         456      456           
=======================================
  Hits          292      292           
  Misses        164      164           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

finalizer(clReleaseCommandQueue, q)
finalizer(q) do _
# this is to prevent `device_synchronize()` operating on freed queues.
# XXX: why does the WeakKeyDict contain freed objects?
Copy link
Member

Choose a reason for hiding this comment

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

Order of finalizers? E.g. the second finalizer that removes q from queues hasn't run yet?

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

That, or maybe the objects are collected as part of a single collection cycle? In any case, kind-of surprising.

@maleadt maleadt merged commit 1358a43 into master Oct 4, 2024
5 checks passed
@maleadt maleadt deleted the tb/device_synchronize_stale branch October 4, 2024 13:30
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