You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm currently using the adaptive library to depict a phase diagram. I'm attempting to leverage multiple cores on my server by employing multiprocessing. However, I've encountered issues when using the AsyncRunner.
Below is the code snippet that I'm running in a single Python script:
It's important to note that the sample function is computationally intensive, taking hours to complete. Each function instance writes to its own identical files, preventing conflicts.
However, executing the code above results in an incomplete run, leaving the stack trace below:
The runner is non blocking, so the status message you are seeing is expected and not an actual error message. It shows where in the code the runner currently is, and immediately afterwards it will close the executor (when reaching the end of your with: block).
The AsyncRunner is useful whenever you are in an interactive development environment such as a notebook because it don't block the notebook kernel. If you are using a script you can still use runner.ioloop.run_until_complete(runner.task) to block until it is done (and soon use #444).
Hello! I'm currently using the adaptive library to depict a phase diagram. I'm attempting to leverage multiple cores on my server by employing multiprocessing. However, I've encountered issues when using the AsyncRunner.
Below is the code snippet that I'm running in a single Python script:
It's important to note that the sample function is computationally intensive, taking hours to complete. Each function instance writes to its own identical files, preventing conflicts.
However, executing the code above results in an incomplete run, leaving the stack trace below:
While using the BlockingRunner class works fine, I suspect there might be an efficiency bottleneck in the multiprocessing process.
Could you please help me identify the problem in my script? Additionally, do you think it would be more efficient to use the AsyncRunner in my case?
Thanks a lot for your assistance!
The text was updated successfully, but these errors were encountered: