paramm-team / pybamm-param

Parameter optimisation for PyBaMM.
BSD 3-Clause "New" or "Revised" License
38 stars 8 forks source link

Issues with threading/multiprocessing in examples (M2 Mac) #47

Open PipGrylls opened 1 year ago

PipGrylls commented 1 year ago

The following scripts throw `RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if __name__ == '__main__':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.`
PipGrylls commented 11 months ago

Still a problem as of 10/11/23

brosaplanella commented 11 months ago

I thought it might be related to the ScipyDifferentialEvolution using multiple cores, but in theory scipy_minimise is not using them...

PipGrylls commented 1 month ago

while the examples run on 3.12 in the runner using ubuntu they still cause issues on an M2 mac #87 but the error is slightly different