Skip to content

Conversation

@cadolphe-amd
Copy link
Contributor

Motivation

Removal of a memory object from the memory object maps occurs in the memory destructor. As such, at the end of hipMemAddressFree we need to be certain that we enter the memory destructor so as to clean the memory object maps.

Technical Details

Add a device synchronize and a check on the reference count for the memory object to ensure that we enter the memory destructor.

JIRA ID

N/A

Test Plan

Pytorch expandable segments test.

Test Result

Test is passing.

Submission Checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants