[GraphBolt][CUDA] Refactor overlap_graph_fetch, simplify gb.DataLoader.#7681
Merged
mfbalin merged 9 commits intoAug 12, 2024
Merged
Conversation
Collaborator
|
To trigger regression tests:
|
Collaborator
Collaborator
Collaborator
Collaborator
Collaborator
Collaborator
Collaborator
mfbalin
commented
Aug 11, 2024
mfbalin
left a comment
Collaborator
Author
There was a problem hiding this comment.
Went over the whole code and seems to look good to me.
Collaborator
Collaborator
frozenbugs
reviewed
Aug 16, 2024
| datapipe = datapipe.copy_to(device) | ||
| datapipe = datapipe.sample_neighbor(graph, args.fanout) | ||
| datapipe = datapipe.sample_neighbor( | ||
| graph, args.fanout, overlap_fetch=args.storage_device == "pinned" |
Collaborator
There was a problem hiding this comment.
Did we release the overlap_fetch in last release, if so, we need to highlight the API change if we really believe this is a good api change.
Collaborator
Author
There was a problem hiding this comment.
I think it is in DGL 2.3. In this release, this parameter moved from gb.DataLoader to sample_neighbor.
Collaborator
Author
There was a problem hiding this comment.
https://docs.dgl.ai/en/latest/generated/dgl.graphbolt.DataLoader.html#dgl.graphbolt.DataLoader shows the overlap_graph_fetch option.
lijialin03
pushed a commit
to lijialin03/dgl
that referenced
this pull request
Jan 6, 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
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.
Description
gb.DataLoaderto the sampling classes foroverlap_graph_fetch. It is an argument of the sampler now.gpu_graph_cacheto the FusedCSCSamplingGraph because otherwise it won't be shared across train or validation dataloader for example. That way, there will be a single graph cache for multiple dataloader instances.The end goal is to make sampling and compaction async and hide the latency of GPU CPU synchronizations during these stages. A lot of our optimizations also have inherent GPU CPU synchronization, which will be handled in the same way. I needed to clean the code and refactor before #7682.
I might refactor more and reduce the amount of code in our code base in the future.
Checklist
Please feel free to remove inapplicable items for your PR.
Changes