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.

MulticoreEvalParallelSampler not forking?!

See original GitHub issue

Bug description

I have code that works fine with SingleCoreSampler but throws this odd fault with MulticoreEvalParallelSampler?

Full trace attached as dbug-multcore.txt dbug-multcore.txt

Expected behavior i expect the code to work faster with n>1 core!

To reproduce [A minimal example to reproduce this error, ideally a python script.]

Code attached as cvsimTutorial4dbug.py.txt cvsimTutorial4dbug.py.txt

Environment [Report at least the pyABC version (pip show pyabc),

Version: 0.10.13

python version (which python; python --version),

Python 3.8.5

and system (Ubuntu/Mac/…).]

MacOS v10.15.7

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
rbelewcommented, Oct 12, 2021

hi @EmadAlamoudi , back in a place where i can test more thoroughly on different platforms and … i’m getting different behaviors!? So i’m closing this issue until i can produce a sharper version!

0reactions
EmadAlamoudicommented, Oct 14, 2021

Hi @rbelew , Thanks for the update. Please don’t hesitate to reopen the issue once you have the newer version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parallel sampling — pyABC documentation - Read the Docs
Requires no pickling of the sample_one , simulate_one and accept_one function. This is achieved using fork on linux (see Sampler ). The simulation...
Read more >
Python multithreading and PyJulia error: At least one worker is ...
I can spawn Julia processes in single core mode (using SingleCoreSampler rather than MulticoreEvalParallelSampler setting of the PyABC library).
Read more >
BUG: Can't pickle local object · Issue #286 · ICB-DCM/pyABC
If Linux, this seems to be indeed strange, because afaik the forking employed in the multiprocessing module should not perform pickling at all....
Read more >
Check If Forked Processing ("multicore") is Supported - R
R running on Microsoft Windows does not support forked processing. In R, forked processing is often referred to as "multicore" processing, which stems...
Read more >
Getting Started - | notebook.community
Clearly the default parameters in the MMT file are not quite right, but we are able to run the ... Only pyabc MulticoreEvalParallelSampler...
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