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

Add bucket allocator for device memory #12610

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

devreal
Copy link
Contributor

@devreal devreal commented Jun 10, 2024

This is a the fourth chunk of #12318. We need the allocator to cache allocations on the device as allocation is too expensive to do on the fly in every collective operation.

This allocator is based on the existing bucket allocator but stores the bucket information separately instead of in front of the allocated memory chunk. The allocator uses a hash table to store the metadata and caches allocations. By default, chunks between 4K and 1G are cached. MCA variables can be used to configure these thresholds.

This allocator is based on the existing bucket allocator but stores
the bucket information separately instead of in front of the allocated
memory chunk. The allocator uses a hash table to store the metadata and
caches allocations. By default, chunks between 4K and 1G are cached.
MCA variables can be used to configure these thresholds.

Signed-off-by: Joseph Schuchart <joseph.schuchart@stonybrook.edu>
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.

1 participant