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

[Feature] Replacing thread_wrapped_func with minimal mp.Process wrapper #2905

Merged
merged 7 commits into from
May 14, 2021

Conversation

BarclayII
Copy link
Collaborator

Description

This is removing all the tedious occurrences of thread_wrapped_func in the model examples. It is replaced by a minimal mp.Process wrapper dgl.multiprocessing.Process, which automatically handles the wrapping for you.

From now on, for multi-GPU training we recommend the users to use dgl.multiprocessing.Process instead of torch.multiprocessing.Process.

@dgl-bot
Copy link
Collaborator

dgl-bot commented May 12, 2021

To trigger regression tests:

  • @dgl-bot run [instance-type] [which tests] [compare-with-branch];
    For example: @dgl-bot run g4dn.4xlarge all dmlc/master or @dgl-bot run c5.9xlarge kernel,api dmlc/master

@BarclayII BarclayII merged commit caa6d60 into dmlc:master May 14, 2021
@BarclayII BarclayII deleted the thread-wrapper branch May 14, 2021 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants