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

Global variables are not shared with executors when run with multiprocessing #1

Open
chris-zen opened this issue Aug 14, 2024 · 1 comment

Comments

@chris-zen
Copy link
Collaborator

When running it in MacOS, the multiprocessing module doesn't work as it would be expected in Linux, where the executors inherit the global variables from the parent process. But instead they appear as None, which makes the program to crash. A way to avoid the problem is to configure the OncodriveFML class to avoid parallel by setting the self.avoid_parallel = True in the constructor, and then it runs successfully.

The solution will require to eliminate all the global variables that are needed by the executors, and pass them to every executor explicitly as parameters.

@FerriolCalvet
Copy link

See #9 for an example of the errors it does not even work with the example data.

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

No branches or pull requests

2 participants