Multithreading with map_rect takes more time

When instantiating a CmdStanModel object, you can specify argument cpp_options as a dict with entries { 'STAN_THREADS' : True }, e,g:

logistic_model = CmdStanModel(stan_file=logistic_stan, cpp_options={ 'STAN_THREADS' : True})

sorry - the documentation is quite incomplete here - working on it. your feedback welcome!

3 Likes