FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

w2r: release copy immediately if no host copy is available by devreal · Pull Request #684 · ICLDisco/parsec · GitHub

w2r: release copy immediately if no host copy is available - #684

Closed
devreal wants to merge 2 commits into
ICLDisco:masterfrom
devreal:w2r-without-host
Closed

devreal wants to merge 2 commits into
ICLDisco:masterfrom
devreal:w2r-without-host

Conversation

devreal commented Oct 18, 2024

Copy link
Copy Markdown
Contributor

And if no readers exist on the copy.

In TTG, host-side data can disappear once its life-time ended, detaching the CPU data copy from the data. On eviction, we have no host copy to evict to so we just drop the device copy. This is not perfect as it might lead to race conditions with multiple devices but it is a step forward.

devreal requested a review from a team as a code owner October 18, 2024 20:37

bosilca commented Oct 21, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

I would like to see the opposite code for this: where we create a copy that is not attached to a data. Please point me to it.

devreal commented Oct 22, 2024

Copy link
Copy Markdown
Contributor Author

where we create a copy that is not attached to a data.

That's not a thing we do in TTG. What we do though is to create a data that goes out of scope before the end of the program and we detach the host copy from the data. Now the data still exists (because it is ref-counted) and has device copies but no host copy anymore.

Signed-off-by: Joseph Schuchart <joseph.schuchart@stonybrook.edu>
We should track w2r tasks. There may be cases where an eviction
is started but no pushout to the host happens afterwards before
tear-down, e.g., if the data produced in a kernel is sent to
another process. The tear-down will then find data in inconsistent state.

Signed-off-by: Joseph Schuchart <joseph.schuchart@stonybrook.edu>

devreal commented Jan 23, 2025

Copy link
Copy Markdown
Contributor Author

This is replaced by #695

devreal closed this Jan 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL