starsimhub / starsim

Starsim disease modeling framework
http://starsim.org
MIT License
10 stars 4 forks source link

Forking error #476

Open CYGUBICKO opened 2 months ago

CYGUBICKO commented 2 months ago

Terminating: fork() called from a process already using GNU OpenMP, this is unsafe.

cliffckerr commented 2 months ago

Not a Starsim bug but would be good to sort out! To do with parallel processing

daniel-klein commented 2 months ago

Not sure if related, but I have found the following line necessary in some situations on my Mac:

export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

I don't have an exhaustive list of the "situations," might just be debugging from VSCode.

devclinton commented 1 month ago

Could a quick first pass of this bug just be documenting the workaround in our documentation until we can find a better way to address the issue?

cliffckerr commented 1 month ago

That would be nice, but it's hard to reproduce the bug and I haven't found a workaround on Windows yet ...