Pystan on multiprocessing

Multiprocessing runs chains on individual cpu.

Multithreading parallelizes specific calculations to multiple cpu.

If you really want to do it on Windows there is a experimental (not official) tutorial that I made. It uses MSVC 2017 + clang to circumvent the thread_local bug on MinGW-w64/winpthreads.

See Multithreading on Windows with PyStan 2.18+

1 Like