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

[REVIEW] Fixing Incorrect Deallocation Size and Count Bugs #109

Merged

Conversation

mdemoret-nv
Copy link
Contributor

During the development of this PR: rapidsai/rmm#626, I discovered a couple of issues that prevented the new TrackingMemoryResource from functioning properly. In some cases, deallocate() was being called with the wrong number of bytes or shouldn't have been called at all. This inhibits the TrackingMemoryResource from functioning correctly since the allocation bytes and deallocation bytes do not match.

This PR fixes these issues and adds a unit test to check for it moving forward.

@GPUtester
Copy link
Contributor

Please update the changelog in order to start CI tests.

View the gpuCI docs here.

Copy link
Member

@dantegd dantegd left a comment

Choose a reason for hiding this comment

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

change lgtm, just left a comment for a comment typo, so pre-approving

cpp/include/raft/mr/host/allocator.hpp Outdated Show resolved Hide resolved
mdemoret-nv and others added 3 commits December 1, 2020 18:50
Co-authored-by: Dante Gama Dessavre <[email protected]>
…ret-nv/raft into bug-fix-buffer-deallocation-errors
@dantegd dantegd added 5 - Ready to Merge bug Something isn't working non-breaking Non-breaking change labels Dec 2, 2020
@dantegd dantegd merged commit b791a46 into rapidsai:branch-0.17 Dec 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to Merge bug Something isn't working non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants