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

[Question] Is it possible to run multiple threads/processes to run multipe simulations simultaneously? #1441

Closed
steathy-spikes opened this issue Nov 13, 2022 · 1 comment

Comments

@steathy-spikes
Copy link

To whom it may concern

I was wondering if I can leverage multithreading/processing to perform multiple simulations at once.

For example, is it possilbe to run 20 simulations in paralle, if the neuron model that I want to use is the same for all the simulations?

Thank you

@mstimberg
Copy link
Member

[In the future, please direct questions or error reports where you are not sure whether it is "Brian's fault" to Brian's discussion forum, we try to keep the github issues for bugs and feature requests.]

You can definitely run simulations in parallel, e.g. with Python's built-in multiprocessing module. See the examples here: https://brian2.readthedocs.io/en/stable/examples/index.html#multiprocessing
There's also a new feature under development, that makes such tasks more convenient/efficient for Brian's "high performance" C++ standalone mode. See https://brian.discourse.group/t/running-multiple-standalone-simulations-request-for-feedback/802

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