-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Reduce peak memory requirement in graph creation (part 2/2) #2081
Merged
rapids-bot
merged 47 commits into
rapidsai:branch-22.04
from
seunghwak:enh_mem_footprint_part2
Mar 8, 2022
Merged
Reduce peak memory requirement in graph creation (part 2/2) #2081
rapids-bot
merged 47 commits into
rapidsai:branch-22.04
from
seunghwak:enh_mem_footprint_part2
Mar 8, 2022
Conversation
This file contains 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
…dgelist to pass mem_frugal=true to limit the maximum allocation chunk size to avoid malloc failure due to fragmentation with the pool allocator
…uctor to limit peak memory usage
…lower triangular part only and symmetrize to avoid (slightly) asymmetric edge weights due to the limited floating point precisions
seunghwak
added
2 - In Progress
improvement
Improvement / enhancement to an existing function
non-breaking
Non-breaking change
labels
Feb 17, 2022
…dge list in R-values
…of directly calling graph_t constructor
…avoid malloc failure due to fragmentation with the pool allocator)
seunghwak
changed the title
[skip-ci] Reduce peak memory requirement in graph creation (part 2/2)
Reduce peak memory requirement in graph creation (part 2/2)
Feb 24, 2022
ChuckHastings
approved these changes
Mar 1, 2022
kaatish
approved these changes
Mar 8, 2022
@gpucibot merge |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR reduces peak memory usage and replaces one large allocation with few smaller allocations with the same aggregate size (this works better with the pool allocator) in graph creation. Now we can create a graph from 2^30 edges (64 bit vertex IDs & 4 byte edge weight, 20B per edge) limiting the maximum pool size to 36 GB.