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

Use multiprocess from pathos for multiprocessing #656

Merged
merged 7 commits into from Sep 28, 2020

Conversation

lhoestq
Copy link
Member

@lhoestq lhoestq commented Sep 21, 2020

Multiprocess (from the pathos project) allows to use lambda functions in multiprocessed map.
It was suggested to use it by @kandorm.

We're already using dill which is its only dependency.

setup.py Outdated Show resolved Hide resolved
@lhoestq
Copy link
Member Author

lhoestq commented Sep 21, 2020

We can just install multiprocess actually, I'll change that

@BramVanroy
Copy link
Contributor

Just an FYI: I remember that I wanted to try pathos a couple of years back and I ran into issues considering cross-platform; the code would just break on Windows. If I can verify this PR by running CPU tests on Windows, let me know!

@lhoestq
Copy link
Member Author

lhoestq commented Sep 22, 2020

That's good to know thanks
I guess we can just wait for #644 to be merged first. I'm working on fixing the tests for windows

@lhoestq lhoestq force-pushed the use-pathos-for-multiprocessing branch from 1cebde1 to 896e9dd Compare September 25, 2020 15:17
@lhoestq
Copy link
Member Author

lhoestq commented Sep 25, 2020

Looks like all the CI jobs on windows passed !
I also tested locally on my windows and it works great :)

I think this is ready to merge, let me know if you have any remarks @thomwolf @BramVanroy

Copy link
Member

@thomwolf thomwolf left a comment

Choose a reason for hiding this comment

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

Looks to me!

@lhoestq lhoestq merged commit e83bd4c into master Sep 28, 2020
@lhoestq lhoestq deleted the use-pathos-for-multiprocessing branch September 28, 2020 14:45
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.

None yet

3 participants