Skip to content

Commit

Permalink
use spawn for multiprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
mstimberg committed Jun 21, 2024
1 parent 069a64a commit 7bdcd21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions brian2/tests/test_cpp_standalone.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ def test_change_parameters_multiprocessing():

import multiprocessing

multiprocessing.set_start_method("spawn")
with multiprocessing.Pool() as p:
results = p.map(sim.run_sim, range(5))

Expand Down

0 comments on commit 7bdcd21

Please sign in to comment.