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 parallel processing to MoleculeCSVDataset using joblib #67

Merged
merged 3 commits into from
Aug 21, 2020

Conversation

sooheon
Copy link
Contributor

@sooheon sooheon commented Aug 11, 2020

Issue #, if available: #64

Description of changes:
Add new arg n_jobs to MoleculeCSVDataset initialization defaulting to 1. If this is > 1, joblib is used to parallelize _pre_process.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@sooheon
Copy link
Contributor Author

sooheon commented Aug 11, 2020

Have not tested locally yet, I can't seem to get tests/scripts/task_unit_test.sh to use my conda env for testing.

@mufeili mufeili self-requested a review August 19, 2020 14:33
@@ -45,7 +45,9 @@ def get_lib_path():
'numpy>=1.14.0',
'scipy>=1.1.0',
'networkx>=2.1',
'hyperopt'
'hyperopt',
'dgl',
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't recommend putting "dgl" here. The reason is that there are different variants of "dgl" for CPU/CUDA 9.0/CUDA 10.0, etc and it's better to let people install the version they want themselves.

Copy link
Contributor

@mufeili mufeili left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution. I've tried your code and it works fine. Let me merge this PR first and then perform some minor adjustment.

@mufeili mufeili merged commit 56f4bd3 into awslabs:master Aug 21, 2020
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.

2 participants