question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issues with multiprocess

See original GitHub issue

I having some issues with multiprocessing where on some clusters the PSO will not start even waiting for a hour. When I manually interrupt the code, I found that the code is stuck at the following block:

Screenshot 2021-04-02 at 8 24 26 am

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
chinyitancommented, Jul 9, 2021

I manage to solve the issue by using mpi4py

1reaction
martin-milloncommented, Apr 6, 2021

Yes, I am only using multithreading and not MPI on the EPFL cluster since I have access to only one node at a time. I found that the multithreading mode is more efficient if you are using only one node. But I never had this problem on the cluster, nor on my laptop…

Read more comments on GitHub >

github_iconTop Results From Across the Web

7 Multiprocessing Pool Common Errors in Python
Common Errors When Using Multiprocessing Pool · Forgetting __main__ · Using a Function Call in submit() · Using a Function Call in map()...
Read more >
Things I Wish They Told Me About Multiprocessing in Python
When there is only one shared structure, you can easily run into issues with blocking and contention. As such structures proliferate, however, ...
Read more >
Why your multiprocessing Pool is stuck (it's full of sharks!)
On Linux, the default configuration of Python's multiprocessing library can lead to deadlocks and brokenness. Learn why, and how to fix it.
Read more >
python problem with multiprocessing and for - Stack Overflow
In the code below, however, I am using a multiprocessing.Pipe on which the multiprocessing.Queue is built. It is not as flexible as a...
Read more >
multiprocessing issues on Windows #1240 - GitHub
Windows causes certain multiprocessing workflows to fail due to pickling issues. To Reproduce Steps to reproduce the behavior: Run https:// ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found